Class LanguagePlatformException
Represents an error thrown by components in the language platform which are not covered by a standard system exception. It also contains a fault description which can be transmitted through the standard WCF fault mechanism.
Inheritance
Implements
Inherited Members
Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class LanguagePlatformException : Exception, ISerializable, _Exception
Constructors
LanguagePlatformException(ErrorCode)
Initializes a new instance with the specified error code.
Declaration
public LanguagePlatformException(ErrorCode code)
Parameters
Type | Name | Description |
---|---|---|
ErrorCode | code | The error code to assign |
LanguagePlatformException(ErrorCode, FaultStatus)
Initializes a new instance with the specified error code and fault status.
Declaration
public LanguagePlatformException(ErrorCode code, FaultStatus status)
Parameters
Type | Name | Description |
---|---|---|
ErrorCode | code | The error code to assign |
FaultStatus | status | The fault status to assign |
LanguagePlatformException(ErrorCode, FaultStatus, String)
Initializes a new instance with the specified error code, fault status, and data.
Declaration
public LanguagePlatformException(ErrorCode code, FaultStatus status, string data)
Parameters
Type | Name | Description |
---|---|---|
ErrorCode | code | The error code to assign |
FaultStatus | status | The fault status to assign |
System.String | data | Additional error data (may be null) |
LanguagePlatformException(ErrorCode, String)
Initializes a new instance with the specified error code and data.
Declaration
public LanguagePlatformException(ErrorCode code, string data)
Parameters
Type | Name | Description |
---|---|---|
ErrorCode | code | The error code to assign |
System.String | data | Additional error data (may be null) |
LanguagePlatformException(FaultDescription)
Initializes a new instance with the specified fault description.
Declaration
public LanguagePlatformException(FaultDescription description)
Parameters
Type | Name | Description |
---|---|---|
FaultDescription | description | The fault description. |
LanguagePlatformException(FaultDescription, Exception)
Initializes a new instance from a system exception and a specified fault description.
Declaration
public LanguagePlatformException(FaultDescription description, Exception e)
Parameters
Type | Name | Description |
---|---|---|
FaultDescription | description | The fault description. |
System.Exception | e | The underlying system exception. |
Properties
Description
Gets the fault description.
Declaration
public FaultDescription Description { get; }
Property Value
Type | Description |
---|---|
FaultDescription |