Class FinCommServiceException
A FinCommServiceException may be thrown by an IFinCommService implementation to indicate some kind of transport failure.
public class FinCommServiceException : Exception, ISerializable
- Inheritance
-
FinCommServiceException
- Implements
- Inherited Members
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.
public FinCommServiceException(FinCommServiceExceptionCode nCode)
Parameters
nCodeFinCommServiceExceptionCodeThe transport exception code of the exception.
FinCommServiceException(FinCommServiceExceptionCode, Exception)
Create a new FinCommServiceException with a reference to the original exception instance.
public FinCommServiceException(FinCommServiceExceptionCode nCode, Exception aInnerException)
Parameters
nCodeFinCommServiceExceptionCodeaInnerExceptionException
FinCommServiceException(FinCommServiceExceptionCode, string)
Create a new FinCommServiceException with a descriptive message.
public FinCommServiceException(FinCommServiceExceptionCode nCode, string sMessage)
Parameters
nCodeFinCommServiceExceptionCodeThe transport exception code of the exception.
sMessagestringDescriptive 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.
public FinCommServiceException(FinCommServiceExceptionCode nCode, string sMessage, Exception aInnerException)
Parameters
nCodeFinCommServiceExceptionCodeThe transport exception code of the exception.
sMessagestringDescriptive message. This message should be readable to the human user.
aInnerExceptionExceptionThe original exception, such as for example a WebException, that caused the transport failure.
Properties
Code
Provides the detailed exception code of this FinCommServiceException.
public FinCommServiceExceptionCode Code { get; }
Property Value
Methods
GetMessage(FinCommServiceExceptionCode)
Gets a human readable message for a FinCommServiceExceptionCode.
public static string GetMessage(FinCommServiceExceptionCode nCode)