![]() |
CSLA .NET 10.0.0
A home for your business logic
|
This class provides a hook for developers to add custom error handling in the DataPortal. More...
Public Member Functions | |
| DataPortalExceptionHandler (IDataPortalExceptionInspector exceptionInspector) | |
| Creates an instance of the type. | |
| Exception | InspectException (Type objectType, object criteria, string methodName, Exception ex) |
| Transforms the exception in a Fetch, Create or Execute method. | |
| Exception | InspectException (Type objectType, object? businessObject, object? criteria, string methodName, Exception ex) |
| Transforms the exception in a Update, Delete method. | |
This class provides a hook for developers to add custom error handling in the DataPortal.
Typical scenario is to handle non-serializable exception and exceptions from assemblies that does not exist on the client side, such as 3rd party database drivers, MQ drivers etc.
|
inline |
Creates an instance of the type.
| exceptionInspector |
| ArgumentNullException | exceptionInspector is null. |
|
inline |
Transforms the exception in a Fetch, Create or Execute method.
| objectType | Type of the object. |
| criteria | The criteria. |
| methodName | Name of the method. |
| ex | The exception. |
| ArgumentNullException | objectType , criteria or ex is null. |
| ArgumentException | methodName is null, string.Empty or only consists of white spaces. |
|
inline |
Transforms the exception in a Update, Delete method.
| objectType | Type of the object. |
| businessObject | The business object if available. |
| criteria | The criteria. |
| methodName | Name of the method. |
| ex | The exception. |
| ArgumentNullException | objectType or ex is null. |
| ArgumentException | methodName is null, string.Empty or only consists of white spaces. |