Class FinCommServiceException
A FinCommServiceException may be thrown by an IFinCommService implementation to indicate some kind of transport failure.
Inheritance
Implements
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public class FinCommServiceException : Exception, ISerializable
Remarks
All transport exceptions carry a FinCommServiceExceptionCode that further differentiates the nature of the transport failure. Additionally a descriptive message string may be included.
If applicable the original exception, such as for example a WebException, is included as the inner exception.
Constructors
FinCommServiceException(FinCommServiceExceptionCode)
Create a new FinCommServiceException.
Declaration
public FinCommServiceException(FinCommServiceExceptionCode nCode)
Parameters
Type | Name | Description |
---|---|---|
FinCommServiceExceptionCode | nCode | The transport exception code of the exception. |
FinCommServiceException(FinCommServiceExceptionCode, Exception)
Create a new FinCommServiceException with a reference to the original exception instance.
Declaration
public FinCommServiceException(FinCommServiceExceptionCode nCode, Exception aInnerException)
Parameters
Type | Name | Description |
---|---|---|
FinCommServiceExceptionCode | nCode | |
System.Exception | aInnerException |
FinCommServiceException(FinCommServiceExceptionCode, String)
Create a new FinCommServiceException with a descriptive message.
Declaration
public FinCommServiceException(FinCommServiceExceptionCode nCode, string sMessage)
Parameters
Type | Name | Description |
---|---|---|
FinCommServiceExceptionCode | nCode | The transport exception code of the exception. |
System.String | sMessage | Descriptive message. This message should be readable to the human user. |
FinCommServiceException(FinCommServiceExceptionCode, String, Exception)
Create a new FinCommServiceException with a descriptive message and a reference to the original exception instance.
Declaration
public FinCommServiceException(FinCommServiceExceptionCode nCode, string sMessage, Exception aInnerException)
Parameters
Type | Name | Description |
---|---|---|
FinCommServiceExceptionCode | nCode | The transport exception code of the exception. |
System.String | sMessage | Descriptive message. This message should be readable to the human user. |
System.Exception | aInnerException | The original exception, such as for example a WebException, that caused the transport failure. |
Properties
Code
Provides the detailed exception code of this FinCommServiceException.
Declaration
public FinCommServiceExceptionCode Code { get; }
Property Value
Type | Description |
---|---|
FinCommServiceExceptionCode |
Methods
GetMessage(FinCommServiceExceptionCode)
Gets a human readable message for a FinCommServiceExceptionCode.
Declaration
public static string GetMessage(FinCommServiceExceptionCode nCode)
Parameters
Type | Name | Description |
---|---|---|
FinCommServiceExceptionCode | nCode |
Returns
Type | Description |
---|---|
System.String |