Table of Contents

Class ExceptionFactory

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

Provides factory methods for creating strongly-typed exception instances with pre-populated properties.

public static class ExceptionFactory
Inheritance
ExceptionFactory

Remarks

The ExceptionFactory class centralizes exception creation throughout Velocity, ensuring consistent error messages and properly initialized exception properties. Each factory method creates a specific exception type, sets its contextual properties (table names, column names, etc.), and returns a ready-to-throw exception instance. This approach maintains consistent error messaging and simplifies exception handling across the codebase.

Methods

ColumnNotFoundException(string, string)
CustomViewCodeCompilationException(string, string, string)
ExternalTransactionImportException()
GetInvalidFieldNameException(string)
IndexNameNotFoundException(string, string)
InvalidAccessToConnectedResultSetException()
InvalidCheckConstraintException(Check)
InvalidColumnDataTypeException(string, DataType, string)
InvalidImportMappingsException(string, string, string, string)
InvalidParamterValueException(string, Type)
NoValueForNotNullColumnException(string, string)
RecordNotAddedException(string, string)
SchemaNotFoundException(string, string)
SelectItemNotInJoinException(string)
SetInvalidFieldNameException(string)
SetInvalidFieldSizeException(string, long)
TableNameFoundException(string, string)
TransactionCurrentlyActiveException()
TransactionCurrentlyInactiveException()
UnsupportedOperationException(string)
ValueSetForAutoGeneratedColumnException(string, string)
WrongDataTypeException(string, DataType)