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.Server.GenericBusinessException Class Reference

This exception is returned as BusinessException in DataPortalException when the serverside/inner exception is not serializable More...

Inheritance diagram for Csla.Server.GenericBusinessException:

Public Member Functions

 GenericBusinessException (Exception wrappedException)
 Initializes a new instance of the GenericBusinessException class. More...
 
 GenericBusinessException (Exception wrappedException, Exception innerException)
 Initializes a new instance of the GenericBusinessException class. More...
 
 GenericBusinessException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the GenericBusinessException class. More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 When overridden in a derived class, sets the T:System.Runtime.Serialization.SerializationInfo with information about the exception. More...
 
override string ToString ()
 Returns a System.String that represents this instance. More...
 

Properties

override string StackTrace [get]
 Gets a string representation of the immediate frames on the call stack. More...
 
override IDictionary Data [get]
 Gets a collection of key/value pairs that provide additional user-defined information about the exception. More...
 
string TypeName [get]
 Gets the name of the type. More...
 

Detailed Description

This exception is returned as BusinessException in DataPortalException when the serverside/inner exception is not serializable

Definition at line 21 of file GenericBusinessException.cs.

Constructor & Destructor Documentation

◆ GenericBusinessException() [1/3]

Csla.Server.GenericBusinessException.GenericBusinessException ( Exception  wrappedException)

Initializes a new instance of the GenericBusinessException class.

Reads information for a NonSerializable excpeption into GenericBusinessException

Parameters
wrappedExceptionThe wrapped exception.

Definition at line 74 of file GenericBusinessException.cs.

◆ GenericBusinessException() [2/3]

Csla.Server.GenericBusinessException.GenericBusinessException ( Exception  wrappedException,
Exception  innerException 
)

Initializes a new instance of the GenericBusinessException class.

Parameters
wrappedExceptionThe wrapped exception.
innerExceptionThe inner exception.

Definition at line 89 of file GenericBusinessException.cs.

◆ GenericBusinessException() [3/3]

Csla.Server.GenericBusinessException.GenericBusinessException ( SerializationInfo  info,
StreamingContext  context 
)

Initializes a new instance of the GenericBusinessException class.

Parameters
infoThe T:System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
contextThe T:System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Exceptions
T:System.ArgumentNullExceptionThe info parameter is null.
T:System.Runtime.Serialization.SerializationExceptionThe class name is null or P:System.Exception.HResult is zero (0).

Definition at line 107 of file GenericBusinessException.cs.

Member Function Documentation

◆ GetObjectData()

override void Csla.Server.GenericBusinessException.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

When overridden in a derived class, sets the T:System.Runtime.Serialization.SerializationInfo with information about the exception.

Parameters
infoThe T:System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
contextThe T:System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Exceptions
T:System.ArgumentNullExceptionThe info parameter is a null reference (Nothing in Visual Basic).

<PermissionSet> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="*AllFiles*" PathDiscovery="*AllFiles*"> <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="SerializationFormatter"> </PermissionSet>

Definition at line 131 of file GenericBusinessException.cs.

◆ ToString()

override string Csla.Server.GenericBusinessException.ToString ( )

Returns a System.String that represents this instance.

Returns
A System.String that represents this instance.

<PermissionSet> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" PathDiscovery="*AllFiles*"> </PermissionSet>

Definition at line 149 of file GenericBusinessException.cs.

Property Documentation

◆ Data

override IDictionary Csla.Server.GenericBusinessException.Data
get

Gets a collection of key/value pairs that provide additional user-defined information about the exception.

Returns
An object that implements the T:System.Collections.IDictionary interface and contains a collection of user-defined key/value pairs. The default is an empty collection.

Definition at line 49 of file GenericBusinessException.cs.

◆ StackTrace

override string Csla.Server.GenericBusinessException.StackTrace
get

Gets a string representation of the immediate frames on the call stack.

Returns
A string that describes the immediate frames of the call stack.

<PermissionSet> <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" PathDiscovery="*AllFiles*"> </PermissionSet>

Definition at line 36 of file GenericBusinessException.cs.

◆ TypeName

string Csla.Server.GenericBusinessException.TypeName
get

Gets the name of the type.

The name of the type.

Definition at line 61 of file GenericBusinessException.cs.