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.