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.Hosts.DataPortalChannel.DataPortalErrorInfo Class Reference

Message containing details about any server-side exception. More...

Inheritance diagram for Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo:
Csla.ReadOnlyBase< DataPortalErrorInfo >

Public Member Functions

 DataPortalErrorInfo (Exception ex)
 Creates an instance of the object. More...
 
 DataPortalErrorInfo ()
 Creates an empty instance of the type. More...
 
 DataPortalErrorInfo (Csla.WcfPortal.WcfErrorInfo info)
 Creates an instance of the type by copying the WcfErrorInfo data. More...
 
- Public Member Functions inherited from Csla.ReadOnlyBase< DataPortalErrorInfo >
override string ToString ()
 Returns a text representation of this object by returning the GetIdValue value in text form. More...
 
virtual bool CanReadProperty (Csla.Core.IPropertyInfo property)
 Returns true if the user is allowed to read the calling property. More...
 
bool CanReadProperty (Csla.Core.IPropertyInfo property, bool throwOnFalse)
 Returns true if the user is allowed to read the calling property. More...
 
bool CanReadProperty (string propertyName)
 Returns true if the user is allowed to read the specified property. More...
 
virtual bool CanExecuteMethod (Csla.Core.IMemberInfo method)
 Returns true if the user is allowed to execute the specified method. More...
 
bool CanExecuteMethod (Csla.Core.IMemberInfo method, bool throwOnFalse)
 Returns true if the user is allowed to execute the specified method. More...
 
virtual bool CanExecuteMethod (string methodName)
 Returns true if the user is allowed to execute the specified method. More...
 
Clone ()
 Creates a clone of the object. More...
 
virtual object GetClone ()
 Creates a clone of the object. More...
 

Static Public Attributes

static readonly PropertyInfo< string > ExceptionTypeNameProperty = RegisterProperty<string>(c => c.ExceptionTypeName)
 Type name of the exception object. More...
 
static readonly PropertyInfo< string > MessageProperty = RegisterProperty<string>(c => c.Message)
 Message from the exception object. More...
 
static readonly PropertyInfo< string > StackTraceProperty = RegisterProperty<string>(c => c.StackTrace)
 Stack trace from the exception object. More...
 
static readonly PropertyInfo< string > SourceProperty = RegisterProperty<string>(c => c.Source)
 Source of the exception object. More...
 
static readonly PropertyInfo< string > TargetSiteNameProperty = RegisterProperty<string>(c => c.TargetSiteName)
 TargetSiteName of the exception object. More...
 
static readonly PropertyInfo< DataPortalErrorInfoInnerErrorProperty = RegisterProperty<DataPortalErrorInfo>(c => c.InnerError)
 HttpErrorInfo object containing information about any inner exception of the original exception. More...
 

Properties

string ExceptionTypeName [get]
 Type name of the exception object. More...
 
string Message [get]
 Message from the exception object. More...
 
string StackTrace [get]
 Stack trace from the exception object. More...
 
string Source [get]
 Source of the exception object. More...
 
string TargetSiteName [get]
 TargetSiteName of the exception object. More...
 
DataPortalErrorInfo InnerError [get]
 HttpErrorInfo object containing information about any inner exception of the original exception. More...
 
- Properties inherited from Csla.ReadOnlyBase< DataPortalErrorInfo >
BusinessRules BusinessRules [get]
 Provides access to the broken rules functionality. More...
 
FieldDataManager FieldManager [get]
 Gets the PropertyManager object for this business object. More...
 
virtual bool IsBusy [get]
 Gets a value indicating whether this object or any of its child objects are running an async operation. More...
 
virtual bool IsSelfBusy [get]
 Gets a value indicating whether this object is running an async operation. More...
 
BusyChangedEventHandler BusyChanged
 Event raised when the IsBusy property value has changed. More...
 
EventHandler< ErrorEventArgsUnhandledAsyncException
 Event raised when an exception occurs on a background thread during an asynchronous operation. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Csla.ReadOnlyBase< DataPortalErrorInfo >
virtual object GetIdValue ()
 Override this method to return a unique identifying value for this object. More...
 
 ReadOnlyBase ()
 Creates an instance of the object. More...
 
virtual void Initialize ()
 Override this method to set up event handlers so user code in a partial class can respond to events raised by generated code. More...
 
virtual void AddBusinessRules ()
 Override this method to add per-type authorization rules for your type's properties. More...
 
virtual void DataPortal_OnDataPortalInvoke (DataPortalEventArgs e)
 Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method. More...
 
virtual void DataPortal_OnDataPortalInvokeComplete (DataPortalEventArgs e)
 Called by the server-side DataPortal after calling the requested DataPortal_xyz method. More...
 
virtual void DataPortal_OnDataPortalException (DataPortalEventArgs e, Exception ex)
 Called by the server-side DataPortal if an exception occurs during data access. More...
 
virtual void Child_OnDataPortalInvoke (DataPortalEventArgs e)
 Called by the server-side DataPortal prior to calling the requested DataPortal_XYZ method. More...
 
virtual void Child_OnDataPortalInvokeComplete (DataPortalEventArgs e)
 Called by the server-side DataPortal after calling the requested DataPortal_XYZ method. More...
 
virtual void Child_OnDataPortalException (DataPortalEventArgs e, Exception ex)
 Called by the server-side DataPortal if an exception occurs during data access. More...
 
virtual void OnDeserialized (System.Runtime.Serialization.StreamingContext context)
 This method is called on a newly deserialized object after deserialization is complete. More...
 
GetProperty< P > (string propertyName, P field, P defaultValue)
 Gets a property's value, first checking authorization. More...
 
GetProperty< P > (string propertyName, P field, P defaultValue, Security.NoAccessBehavior noAccess)
 Gets a property's value, first checking authorization. More...
 
GetProperty< P > (PropertyInfo< P > propertyInfo, P field)
 Gets a property's value, first checking authorization. More...
 
GetProperty< P > (PropertyInfo< P > propertyInfo, P field, P defaultValue, Security.NoAccessBehavior noAccess)
 Gets a property's value, first checking authorization. More...
 
GetProperty< P > (PropertyInfo< P > propertyInfo)
 Gets a property's managed field value, first checking authorization. More...
 
GetProperty< P > (PropertyInfo< P > propertyInfo, Security.NoAccessBehavior noAccess)
 Gets a property's value as a specified type, first checking authorization. More...
 
LazyGetProperty< P > (PropertyInfo< P > property, Func< P > valueGenerator)
 Lazily initializes a property and returns the resulting value. More...
 
LazyGetPropertyAsync< P > (PropertyInfo< P > property, Task< P > factory)
 Lazily initializes a property and returns the resulting value. More...
 
GetPropertyConvert< F, P > (PropertyInfo< F > propertyInfo, F field)
 Gets a property's value as a specified type, first checking authorization. More...
 
GetPropertyConvert< F, P > (PropertyInfo< F > propertyInfo, F field, Security.NoAccessBehavior noAccess)
 Gets a property's value as a specified type, first checking authorization. More...
 
GetPropertyConvert< F, P > (PropertyInfo< F > propertyInfo)
 Gets a property's value from the list of managed field values, first checking authorization, and converting the value to an appropriate type. More...
 
GetPropertyConvert< F, P > (PropertyInfo< F > propertyInfo, Security.NoAccessBehavior noAccess)
 Gets a property's value from the list of managed field values, first checking authorization, and converting the value to an appropriate type. More...
 
object GetProperty (IPropertyInfo propertyInfo)
 Gets a property's value as a specified type. More...
 
ReadPropertyConvert< F, P > (PropertyInfo< F > propertyInfo)
 Gets a property's value from the list of managed field values, converting the value to an appropriate type. More...
 
ReadProperty< P > (PropertyInfo< P > propertyInfo)
 Gets a property's value as a specified type. More...
 
virtual object ReadProperty (IPropertyInfo propertyInfo)
 Gets a property's value as a specified type. More...
 
LazyReadProperty< P > (PropertyInfo< P > property, Func< P > valueGenerator)
 Gets a property's value as a specified type. More...
 
LazyReadPropertyAsync< P > (PropertyInfo< P > property, Task< P > factory)
 Gets a property's value as a specified type. More...
 
void LoadPropertyConvert< P, F > (PropertyInfo< P > propertyInfo, F newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
 
void LoadProperty< P > (PropertyInfo< P > propertyInfo, P newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
 
virtual void LoadProperty (IPropertyInfo propertyInfo, object newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
 
void LoadPropertyAsync< R > (PropertyInfo< R > property, Task< R > factory)
 Load a property from an async method. More...
 
void MarkBusy ()
 Marks the object as being busy (it is running an async operation). More...
 
void MarkIdle ()
 Marks the object as being not busy (it is not running an async operation). More...
 
void OnBusyChanged (string propertyName, bool busy)
 Raises the BusyChanged event. More...
 
virtual void OnBusyChanged (BusyChangedEventArgs args)
 Raises the BusyChanged event. More...
 
override void OnGetChildren (Csla.Serialization.Mobile.SerializationInfo info, Csla.Serialization.Mobile.MobileFormatter formatter)
 Override this method to insert your child object references into the MobileFormatter serialzation stream. More...
 
override void OnSetChildren (Csla.Serialization.Mobile.SerializationInfo info, Csla.Serialization.Mobile.MobileFormatter formatter)
 Override this method to retrieve your child object references from the MobileFormatter serialzation stream. More...
 
virtual void OnUnhandledAsyncException (ErrorEventArgs error)
 Raises the UnhandledAsyncException event. More...
 
void OnUnhandledAsyncException (object originalSender, Exception error)
 Raises the UnhandledAsyncException event. More...
 
- Static Protected Member Functions inherited from Csla.ReadOnlyBase< DataPortalErrorInfo >
static PropertyInfo< P > RegisterProperty< P > (Type objectType, PropertyInfo< P > info)
 Indicates that the specified property belongs to the type. More...
 
static PropertyInfo< P > RegisterProperty< P > (PropertyInfo< P > info)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static Csla.Core.IMemberInfo RegisterMethod (Type objectType, IMemberInfo info)
 Indicates that the specified method belongs to the type. More...
 
static MethodInfo RegisterMethod (Type objectType, string methodName)
 Indicates that the specified method belongs to the type. More...
 
static MethodInfo RegisterMethod (string methodName)
 Registers a method for use in Authorization. More...
 
static MethodInfo RegisterMethod (Expression< Action< T > > methodLambdaExpression)
 Registers the method. More...
 

Detailed Description

Message containing details about any server-side exception.

Definition at line 18 of file DataPortalErrorInfo.cs.

Constructor & Destructor Documentation

◆ DataPortalErrorInfo() [1/3]

Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.DataPortalErrorInfo ( Exception  ex)

Creates an instance of the object.

Parameters
exThe Exception to encapusulate.

Definition at line 114 of file DataPortalErrorInfo.cs.

◆ DataPortalErrorInfo() [2/3]

Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.DataPortalErrorInfo ( )

Creates an empty instance of the type.

Definition at line 129 of file DataPortalErrorInfo.cs.

◆ DataPortalErrorInfo() [3/3]

Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.DataPortalErrorInfo ( Csla.WcfPortal.WcfErrorInfo  info)

Creates an instance of the type by copying the WcfErrorInfo data.

Parameters
infoWcfErrorInfo object.

Definition at line 138 of file DataPortalErrorInfo.cs.

Member Data Documentation

◆ ExceptionTypeNameProperty

readonly PropertyInfo<string> Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.ExceptionTypeNameProperty = RegisterProperty<string>(c => c.ExceptionTypeName)
static

Type name of the exception object.

Definition at line 23 of file DataPortalErrorInfo.cs.

◆ InnerErrorProperty

readonly PropertyInfo<DataPortalErrorInfo> Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.InnerErrorProperty = RegisterProperty<DataPortalErrorInfo>(c => c.InnerError)
static

HttpErrorInfo object containing information about any inner exception of the original exception.

Definition at line 95 of file DataPortalErrorInfo.cs.

◆ MessageProperty

readonly PropertyInfo<string> Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.MessageProperty = RegisterProperty<string>(c => c.Message)
static

Message from the exception object.

Definition at line 37 of file DataPortalErrorInfo.cs.

◆ SourceProperty

readonly PropertyInfo<string> Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.SourceProperty = RegisterProperty<string>(c => c.Source)
static

Source of the exception object.

Definition at line 65 of file DataPortalErrorInfo.cs.

◆ StackTraceProperty

readonly PropertyInfo<string> Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.StackTraceProperty = RegisterProperty<string>(c => c.StackTrace)
static

Stack trace from the exception object.

Definition at line 51 of file DataPortalErrorInfo.cs.

◆ TargetSiteNameProperty

readonly PropertyInfo<string> Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.TargetSiteNameProperty = RegisterProperty<string>(c => c.TargetSiteName)
static

TargetSiteName of the exception object.

Definition at line 79 of file DataPortalErrorInfo.cs.

Property Documentation

◆ ExceptionTypeName

string Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.ExceptionTypeName
get

Type name of the exception object.

Definition at line 28 of file DataPortalErrorInfo.cs.

◆ InnerError

DataPortalErrorInfo Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.InnerError
get

HttpErrorInfo object containing information about any inner exception of the original exception.

Definition at line 102 of file DataPortalErrorInfo.cs.

◆ Message

string Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.Message
get

Message from the exception object.

Definition at line 42 of file DataPortalErrorInfo.cs.

◆ Source

string Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.Source
get

Source of the exception object.

Definition at line 70 of file DataPortalErrorInfo.cs.

◆ StackTrace

string Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.StackTrace
get

Stack trace from the exception object.

Definition at line 56 of file DataPortalErrorInfo.cs.

◆ TargetSiteName

string Csla.Server.Hosts.DataPortalChannel.DataPortalErrorInfo.TargetSiteName
get

TargetSiteName of the exception object.

Definition at line 84 of file DataPortalErrorInfo.cs.