Partager via


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

.NET Framework Security

See Also

Reference

DirectiveProcessorException Class

DirectiveProcessorException Overload

Microsoft.VisualStudio.TextTemplating Namespace

InnerException

Message