CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. More...
 
 DataPortalException (string message, Exception ex, object businessObject)
 Creates an instance of the type. More...
 
 DataPortalException (string message, Exception ex)
 Creates an instance of the type. More...
 
 DataPortalException (DataPortalErrorInfo info)
 Creates an instance of the type. More...
 
override string ToString ()
 Gets a string representation of this object. More...
 
override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 Serializes the object. More...
 

Protected Member Functions

 DataPortalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 Creates an instance of the object for serialization. More...
 

Properties

DataPortalErrorInfo ErrorInfo [get]
 Gets information about the original server-side exception. More...
 
DataPortalErrorInfo BusinessErrorInfo [get]
 Gets the original exception error info that caused this exception. More...
 
object BusinessObject [get]
 Returns a reference to the business object from the server-side DataPortal. More...
 
Exception BusinessException [get]
 Gets the original server-side exception. More...
 
string BusinessExceptionMessage [get]
 Gets the Message property from the BusinessException, falling back to the Message value from the top-level exception. More...
 
override string StackTrace [get]
 Get the combined stack trace from the server and client. More...
 

Detailed Description

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

Definition at line 20 of file DataPortalException.cs.

Constructor & Destructor Documentation

◆ DataPortalException() [1/5]

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

Creates an instance of the type.

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

Definition at line 28 of file DataPortalException.cs.

◆ DataPortalException() [2/5]

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

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.

Definition at line 42 of file DataPortalException.cs.

◆ DataPortalException() [3/5]

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

Creates an instance of the type.

Parameters
messageException message.
exInner exception.

Definition at line 58 of file DataPortalException.cs.

◆ DataPortalException() [4/5]

Csla.DataPortalException.DataPortalException ( DataPortalErrorInfo  info)

Creates an instance of the type.

Parameters
infoInfo about the exception.

Definition at line 68 of file DataPortalException.cs.

◆ DataPortalException() [5/5]

Csla.DataPortalException.DataPortalException ( System.Runtime.Serialization.SerializationInfo  info,
System.Runtime.Serialization.StreamingContext  context 
)
protected

Creates an instance of the object for serialization.

Parameters
infoSerialization info object.
contextSerialization context object.

Definition at line 201 of file DataPortalException.cs.

Member Function Documentation

◆ GetObjectData()

override void Csla.DataPortalException.GetObjectData ( System.Runtime.Serialization.SerializationInfo  info,
System.Runtime.Serialization.StreamingContext  context 
)

Serializes the object.

Parameters
infoSerialization info object.
contextSerialization context object.

Definition at line 218 of file DataPortalException.cs.

◆ ToString()

override string Csla.DataPortalException.ToString ( )

Gets a string representation of this object.

Definition at line 78 of file DataPortalException.cs.

Property Documentation

◆ BusinessErrorInfo

DataPortalErrorInfo Csla.DataPortalException.BusinessErrorInfo
get

Gets the original exception error info that caused this exception.

Definition at line 111 of file DataPortalException.cs.

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

Definition at line 153 of file DataPortalException.cs.

◆ BusinessExceptionMessage

string Csla.DataPortalException.BusinessExceptionMessage
get

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

Definition at line 173 of file DataPortalException.cs.

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

Definition at line 137 of file DataPortalException.cs.

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

Definition at line 105 of file DataPortalException.cs.

◆ StackTrace

override string Csla.DataPortalException.StackTrace
get

Get the combined stack trace from the server and client.

Definition at line 191 of file DataPortalException.cs.