Click or drag to resize

Fault Class

Base data contract class for transfering fault details to service consumer. This base class is also used for transfering a none specific fault to service consumer.
Inheritance Hierarchy

Namespace:  Tse.EasyBook.Server.DataContracts.Faults
Assembly:  Tse.EasyBook.Server.DataContracts (in Tse.EasyBook.Server.DataContracts.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Fault

The Fault type exposes the following members.

Properties
  NameDescription
Public propertyBrokenRules
Possible list of broken business validation rules. Use to provide specific fault information to the service consumer.
Public propertyErrorCode
The error code of the exception
Public propertyErrorCodeText
The error code of the exception as text
Public propertyMessage
Fault message.
Public propertyMessageCulture
Culture name of the fault message.
Public propertyOriginalException
The fault original exception if is has any.
Public propertyStackTrace
Stack trace from the server exception.
Public propertyUniqueId
Unique identifier for each fault instance. Can be use to lookup the exception logged on the server side from the client side.
Top
Methods
  NameDescription
Public methodStatic memberErrorCodeEnumToMessage
Get corresponding message for the error code from the TypeText.resx ressource file. The format of the ressource string name is: ErrorCodeEnum + ErrorCodeEnum.Value. Example: "ErrorCodeEnum.InvalidRentalObjectNo".
Public methodToString
Override ToString to include the unique id in exceptions dumps.
(Overrides ObjectToString.)
Top
See Also