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.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 object. More...
 
 DataPortalException (string message, Exception ex, object businessObject)
 Creates an instance of the object. More...
 
 DataPortalException (string message, Exception ex)
 Creates an instance of the object. More...
 
 DataPortalException (WcfPortal.WcfErrorInfo info)
 Creates an instance of the object. More...
 
 DataPortalException (DataPortalErrorInfo info)
 Creates an instance of the object. 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/6]

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

Creates an instance of the object.

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/6]

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

Creates an instance of the object.

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/6]

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

Creates an instance of the object.

Parameters
messageException message.
exInner exception.

Definition at line 58 of file DataPortalException.cs.

◆ DataPortalException() [4/6]

Csla.DataPortalException.DataPortalException ( WcfPortal.WcfErrorInfo  info)

Creates an instance of the object.

Parameters
infoInfo about the exception.

Definition at line 69 of file DataPortalException.cs.

◆ DataPortalException() [5/6]

Csla.DataPortalException.DataPortalException ( DataPortalErrorInfo  info)

Creates an instance of the object.

Parameters
infoInfo about the exception.

Definition at line 80 of file DataPortalException.cs.

◆ DataPortalException() [6/6]

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 213 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 230 of file DataPortalException.cs.

◆ ToString()

override string Csla.DataPortalException.ToString ( )

Gets a string representation of this object.

Definition at line 90 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 123 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 165 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 185 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 149 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 117 of file DataPortalException.cs.

◆ StackTrace

override string Csla.DataPortalException.StackTrace
get

Get the combined stack trace from the server and client.

Definition at line 203 of file DataPortalException.cs.