Represents a single exception that has occurred on the server.

When the server returns an exception to the client it converts each chained exception into an ErrorRecord object and places it in an error stack (ErrorStack).


The following tables list the members exposed by ErrorRecord.

Public Constructors

 NameDescription
StaticPublic methodErrorRecordOverloaded.  
Top

Protected Constructors

 NameDescription
StaticFamily methodErrorRecordOverloaded.  
Top

Public Fields

 NameDescription
Public fieldStaticDIAGNOSTIC_EXCEPTION_CODEWhen the exception is an EngineRuntimeException instance, this field identifies the exception code. This field is used by GetDiagnosticTypes and ToString. This field is constant and read-only.
Public fieldStaticDIAGNOSTIC_STACK_TRACEIdentifies the stack trace information for the exception. This field is used by GetDiagnosticTypes and ToString. This field is constant and read-only.
Top

Public Methods

 NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (inherited from Object)
Public methodGetDescriptionGets the description string for the exception.
Public methodGetDiagnosticTypesReturns the key and associated value describing the specific details required to troubleshoot the exception. For an EngineRuntimeException, this generally includes the specific exception code and stack trace of where the problem occurred.
Public methodGetHashCodeServes as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public methodGetObjectDataThis method is exposed to satisfy the ISerializable interface.
Public methodGetSourceGets the name of the exception instance that occurred.
Public methodGetTypeGets the Type of the current instance. (inherited from Object)
Public methodToStringOverridden. Returns a description of the exception. The result is the concatenation of the following:
  • The name of this exception's class.
  • The name of the exception code.
  • The localized error message.
  • The exception's error stack.
Top

Protected Methods

 NameDescription
Family methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family methodMemberwiseCloneCreates a shallow copy of the current Object. (inherited from Object)
Top

Explicit Interface Implementations

 NameDescription
StaticPrivate methodErrorRecordOverloaded.  
Top

See Also