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 (in Microsoft.VisualStudio.TextTemplating.dll)

Syntax

'宣言
Public Sub New ( _
    message As String, _
    inner As Exception _
)
'使用
Dim message As String
Dim inner As Exception

Dim instance As New DirectiveProcessorException(message, _
    inner)
public DirectiveProcessorException(
    string message,
    Exception inner
)
public:
DirectiveProcessorException(
    String^ message, 
    Exception^ inner
)
public function DirectiveProcessorException(
    message : String, 
    inner : Exception
)

Parameters

  • message
    Type: System.String

    A message that describes the error.

  • inner
    Type: System.Exception

    The 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.

Permissions

See Also

Reference

DirectiveProcessorException Class

DirectiveProcessorException Members

DirectiveProcessorException Overload

Microsoft.VisualStudio.TextTemplating Namespace

InnerException

Message