TemplateException Class

Represents errors that occur during template processing, compilation, or execution.

public class TemplateException : Exception
Inheritance
Exception TemplateException

Constructors

NameDescription
TemplateException()Initializes a new instance of the TemplateException class.
TemplateException(string)Initializes a new instance of the TemplateException class with a specified error message.
TemplateException(string, Exception)Initializes a new instance of the TemplateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

TemplateException overloads

TemplateException()

TemplateException.cs

Initializes a new instance of the TemplateException class.

public TemplateException()

TemplateException(string)

TemplateException.cs

Initializes a new instance of the TemplateException class with a specified error message.

public TemplateException(string message)
Parameters
message string
The message that describes the error.

TemplateException(string, Exception)

TemplateException.cs

Initializes a new instance of the TemplateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public TemplateException(string message, Exception innerException)
Parameters
message string
The message that describes the error.
innerException Exception
The exception that is the cause of the current exception.