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
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 -> CompilationData
Gets some copilation specific (temporary) data.
CompilerErrors()
Signature: unit -> ReadOnlyCollection<RazorEngineCompilerError>
Gets the set of compiler errors.
Errors()
Signature: unit -> 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: unit -> string
Gets the generated source code.
Template()
Signature: unit -> string
Gets the source template that wasn't compiled.
Fork me on GitHub