CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.DataPortalException Class Reference

This exception is returned for any errors occurring during the server-side DataPortal invocation. More...

Inheritance diagram for Csla.DataPortalException:

Public Member Functions

 DataPortalException (string message, object businessObject)
 Creates an instance of the type.
 DataPortalException (string message, Exception ex, object? businessObject)
 Creates an instance of the type.
 DataPortalException (string message, Exception ex)
 Creates an instance of the type.
 DataPortalException (DataPortalErrorInfo info)
 Creates an instance of the type.
override string ToString ()
 Gets a string representation of this object.

Properties

DataPortalErrorInfoErrorInfo [get]
 Gets information about the original server-side exception. That exception is not an exception on the client side, but this property returns information about the exception.
DataPortalErrorInfoBusinessErrorInfo [get]
 Gets the original exception error info that caused this exception.
object? BusinessObject [get]
 Returns a reference to the business object from the server-side DataPortal.
Exception? BusinessException [get]
 Gets the original server-side exception.
string BusinessExceptionMessage [get]
 Gets the Message property from the BusinessException, falling back to the Message value from the top-level exception.
override string StackTrace [get]
 Get the combined stack trace from the server and client.

Detailed Description

This exception is returned for any errors occurring during the server-side DataPortal invocation.

Constructor & Destructor Documentation

◆ DataPortalException() [1/4]

Csla.DataPortalException.DataPortalException ( string message,
object businessObject )
inline

Creates an instance of the type.

Parameters
messageText describing the exception.
businessObjectThe business object as it was at the time of the exception.

◆ DataPortalException() [2/4]

Csla.DataPortalException.DataPortalException ( string message,
Exception ex,
object? businessObject )
inline

Creates an instance of the type.

Parameters
messageText describing the exception.
exInner exception.
businessObjectThe business object as it was at the time of the exception.

◆ DataPortalException() [3/4]

Csla.DataPortalException.DataPortalException ( string message,
Exception ex )
inline

Creates an instance of the type.

Parameters
messageException message.
exInner exception.

◆ DataPortalException() [4/4]

Csla.DataPortalException.DataPortalException ( DataPortalErrorInfo info)
inline

Creates an instance of the type.

Parameters
infoInfo about the exception.
Exceptions
ArgumentNullExceptioninfo is null.

Member Function Documentation

◆ ToString()

override string Csla.DataPortalException.ToString ( )
inline

Gets a string representation of this object.

Property Documentation

◆ BusinessErrorInfo

DataPortalErrorInfo? Csla.DataPortalException.BusinessErrorInfo
get

Gets the original exception error info that caused this exception.

◆ BusinessException

Exception? Csla.DataPortalException.BusinessException
get

Gets the original server-side exception.

Returns
An exception object.

Removes all DataPortalException and CallMethodException instances in the exception stack to find the original exception.

◆ BusinessExceptionMessage

string Csla.DataPortalException.BusinessExceptionMessage
get

Gets the Message property from the BusinessException, falling back to the Message value from the top-level exception.

◆ BusinessObject

object? Csla.DataPortalException.BusinessObject
get

Returns a reference to the business object from the server-side DataPortal.

Remember that this object may be in an invalid or undefined state. This is the business object (and any child objects) as it existed when the exception occured on the server. Thus the object state may have been altered by the server and may no longer reflect data in the database.

◆ ErrorInfo

DataPortalErrorInfo? Csla.DataPortalException.ErrorInfo
get

Gets information about the original server-side exception. That exception is not an exception on the client side, but this property returns information about the exception.

◆ StackTrace

override string Csla.DataPortalException.StackTrace
get

Get the combined stack trace from the server and client.


The documentation for this class was generated from the following file: