DirectiveProcessorException Constructor (String, Exception)
Initializes a new instance of the DirectiveProcessorException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
inner As Exception _
)
public DirectiveProcessorException(
string message,
Exception inner
)
public:
DirectiveProcessorException(
String^ message,
Exception^ inner
)
new :
message:string *
inner:Exception -> DirectiveProcessorException
public function DirectiveProcessorException(
message : String,
inner : Exception
)
Parameters
message
Type: System.StringA message that describes the error.
inner
Type: System.ExceptionThe exception that is the cause of the current exception.
Remarks
An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DirectiveProcessorException Class
DirectiveProcessorException Overload