Table of Contents

Class CustomViewCodeCompilationException

Namespace
YndigoBlue.Velocity.Exceptions
Assembly
YndigoBlue.Velocity.dll

Thrown when compilation of code-based view definition fails.

[Serializable]
public class CustomViewCodeCompilationException : Exception, ISerializable
Inheritance
CustomViewCodeCompilationException
Implements

Remarks

This exception occurs when attempting to create a view using Velocity's code-based view builder (ViewType.Code) and the generated or provided code fails to compile. Common scenarios include syntax errors in the view query code, invalid query structures, missing dependencies, or incompatible query expressions that cannot be translated to SQL.

Constructors

CustomViewCodeCompilationException()

Initializes a new instance of the CustomViewCodeCompilationException class.

CustomViewCodeCompilationException(string)

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

Properties

Code

Gets or sets the code that failed to compile.

CompilationErrors

Gets or sets the compilation error messages.

ViewName

Gets or sets the name of the view that could not be created.