DirectiveProcessorException Class

The exception that is thrown by the text template transformation engine, if an error occurs while processing directives.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating (in Microsoft.VisualStudio.TextTemplating.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class DirectiveProcessorException _
    Inherits Exception
'Usage
Dim instance As DirectiveProcessorException
[SerializableAttribute]
public class DirectiveProcessorException : Exception
[SerializableAttribute]
public ref class DirectiveProcessorException : public Exception
public class DirectiveProcessorException extends Exception

Remarks

This class is serializable. This exception is thrown when a directive is not supported, or there is a problem with the number or type of arguments specified. This is also the type of exception that users should throw for any errors that occur in their custom directive processors.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.VisualStudio.TextTemplating.DirectiveProcessorException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DirectiveProcessorException Members

Microsoft.VisualStudio.TextTemplating Namespace

Other Resources

Directive Syntax (Domain-Specific Languages)

Walkthrough: Creating a Custom Directive Processor