Search Results for

    Show / Hide Table of Contents

    Class FaultDescription

    Contains fault and error information intended for WCF/SOAP communication.

    Inheritance
    System.Object
    FaultDescription
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.Core
    Assembly: Sdl.LanguagePlatform.Core.dll
    Syntax
    public class FaultDescription

    Constructors

    FaultDescription(ErrorCode)

    Instantiates a new object and initializes it with the specified error code. The error message is retrieved from the resources, and the error status is set to Error.

    Declaration
    public FaultDescription(ErrorCode code)
    Parameters
    Type Name Description
    ErrorCode code

    The error code

    FaultDescription(ErrorCode, FaultStatus)

    Instantiates a new object and initializes it with the specified error code, error status, and empty error data. The error message is retrieved from the resources.

    Declaration
    public FaultDescription(ErrorCode code, FaultStatus status)
    Parameters
    Type Name Description
    ErrorCode code

    The error code

    FaultStatus status

    The error status

    FaultDescription(ErrorCode, FaultStatus, String)

    Initializes the object with the specified error code, error status, and additional error data. The error message is retrieved from the resources.

    Declaration
    public FaultDescription(ErrorCode code, FaultStatus status, string data)
    Parameters
    Type Name Description
    ErrorCode code

    The error code

    FaultStatus status

    The error status

    System.String data

    Additional error data, may be null

    FaultDescription(ErrorCode, String)

    Instantiates a new object and initializes it with the specified error code and data. The error message is retrieved from the resources, and the error status is set to Error.

    Declaration
    public FaultDescription(ErrorCode code, string data)
    Parameters
    Type Name Description
    ErrorCode code

    The error code

    System.String data

    Additional error data, may be null

    FaultDescription(Exception)

    Initializes a new instance of the FaultDescription class from a system exception.

    Declaration
    public FaultDescription(Exception e)
    Parameters
    Type Name Description
    System.Exception e

    The system exception.

    Properties

    Data

    Gets any additional data relevant for the fault.

    Declaration
    public string Data { get; set; }
    Property Value
    Type Description
    System.String

    ErrorCode

    Gets the error code associated with the fault.

    Declaration
    public ErrorCode ErrorCode { get; set; }
    Property Value
    Type Description
    ErrorCode

    Message

    Gets the error message.

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    System.String

    Status

    Gets the fault status.

    Declaration
    public FaultStatus Status { get; set; }
    Property Value
    Type Description
    FaultStatus

    Methods

    GetDescriptionFromErrorCode(ErrorCode)

    Retrieves a localized error message (which may include System.String.Format(System.String,System.Object) placeholders) for the provided error code.

    Declaration
    public static string GetDescriptionFromErrorCode(ErrorCode code)
    Parameters
    Type Name Description
    ErrorCode code

    An error code

    Returns
    Type Description
    System.String

    A possibly localized error message (depending on the current thread's culture).

    On this page

    • Constructors
      • FaultDescription(ErrorCode)
      • FaultDescription(ErrorCode, FaultStatus)
      • FaultDescription(ErrorCode, FaultStatus, String)
      • FaultDescription(ErrorCode, String)
      • FaultDescription(Exception)
    • Properties
      • Data
      • ErrorCode
      • Message
      • Status
    • Methods
      • GetDescriptionFromErrorCode(ErrorCode)
    Back to top Generated by DocFX