Implement this interface to check a DataPortalException before returning Exception to the client. More...
Public Member Functions | |
| void | InspectException (Type objectType, object businessObject, object criteria, string methodName, Exception ex) |
| Inspects the exception that occurred during DataPortal call If you want to transform to/return another Exception to the client you must throw the new Exception in this method. More... | |
Implement this interface to check a DataPortalException before returning Exception to the client.
Make sure to rethrow a new exception if you want to transfrom to new exception.
Definition at line 17 of file IDataPortalExceptionInspector.cs.
| void Csla.Server.IDataPortalExceptionInspector.InspectException | ( | Type | objectType, |
| object | businessObject, | ||
| object | criteria, | ||
| string | methodName, | ||
| Exception | ex | ||
| ) |
Inspects the exception that occurred during DataPortal call If you want to transform to/return another Exception to the client you must throw the new Exception in this method.
| objectType | Type of the object. |
| businessObject | The business object , if available. |
| criteria | The criteria. |
| methodName | Name of the method. |
| ex | The exception. |