CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Server.IDataPortalExceptionInspector Interface Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ InspectException()

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.

Parameters
objectTypeType of the object.
businessObjectThe business object , if available.
criteriaThe criteria.
methodNameName of the method.
exThe exception.