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.DataPortalExceptionHandler Class Reference

This class provides a hoook for developers to add custom error handling in the DataPortal. More...

Public Member Functions

Exception InspectException (Type objectType, object criteria, string methodName, Exception ex)
 Transforms the exception in a Fetch, Create or Execute method. More...
 
Exception InspectException (Type objectType, object businessObject, object criteria, string methodName, Exception ex)
 Transforms the exception in a Update, Delete method More...
 

Properties

static string ExceptionInspector [getset]
 Gets or sets the fully qualified name of the ExceptionInspector class. More...
 

Detailed Description

This class provides a hoook 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.

Definition at line 22 of file DataPortalExceptionHandler.cs.

Member Function Documentation

◆ InspectException() [1/2]

Exception Csla.Server.DataPortalExceptionHandler.InspectException ( Type  objectType,
object  businessObject,
object  criteria,
string  methodName,
Exception  ex 
)

Transforms the exception in a Update, Delete method

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

Definition at line 108 of file DataPortalExceptionHandler.cs.

◆ InspectException() [2/2]

Exception Csla.Server.DataPortalExceptionHandler.InspectException ( Type  objectType,
object  criteria,
string  methodName,
Exception  ex 
)

Transforms the exception in a Fetch, Create or Execute method.

Parameters
objectTypeType of the object.
criteriaThe criteria.
methodNameName of the method.
exThe exception.
Returns

Definition at line 78 of file DataPortalExceptionHandler.cs.

Property Documentation

◆ ExceptionInspector

string Csla.Server.DataPortalExceptionHandler.ExceptionInspector
staticgetset

Gets or sets the fully qualified name of the ExceptionInspector class.

Definition at line 31 of file DataPortalExceptionHandler.cs.