RazorEngine


TemplateCompilationException

Defined in RazorEngine.dll.

Defines an exception that occurs during compilation of the template.

Constructors

ConstructorDescription
new(errors, files, template)
Signature: (errors:IEnumerable<RazorEngineCompilerError> * files:CompilationData * template:ITemplateSource) -> unit

Initialises a new instance of TemplateCompilationException.

new(info, context)
Signature: (info:SerializationInfo * context:StreamingContext) -> unit

Initialises a new instance of TemplateCompilationException from serialised data.

Instance members

Instance memberDescription
CompilationData()
Signature: unit -> unit

Gets some copilation specific (temporary) data.

CompilerErrors()
Signature: unit -> unit

Gets the set of compiler errors.

Errors
Signature: ReadOnlyCollection<CompilerError>

Gets the set of compiler errors.

GetObjectData(info, context)
Signature: (info:SerializationInfo * context:StreamingContext) -> unit
Modifiers: abstract

Gets the object data for serialisation.

SourceCode
Signature: string

Gets the generated source code.

Template()
Signature: unit -> unit

Gets the source template that wasn't compiled.

Fork me on GitHub