Class SzException
Defines the base exception for Senzing errors. This adds a property for the numeric Senzing error code which can optionally be set.
public class SzException : Exception, ISerializable
- Inheritance
-
SzException
- Implements
- Derived
- Inherited Members
Constructors
SzException()
Default constructor.
public SzException()
SzException(Exception)
Constructs with the Exception that is the underlying cause for the exception.
public SzException(Exception cause)
Parameters
causeExceptionThe underlying cause for the exception.
SzException(long?, string)
Constructs with a message explaining the reason for the exception.
public SzException(long? errorCode, string message)
Parameters
errorCodelong?The underlying Senzing error code.
messagestringThe message explaining the reason for the exception.
SzException(long?, string, Exception)
Constructs with the Senzing error code, the message explaining the reason
for the exception and the Exception that is the underlying cause
for the exception.
public SzException(long? errorCode, string message, Exception cause)
Parameters
errorCodelong?The underlying Senzing error code.
messagestringThe message explaining the reason for the exception.
causeExceptionThe underlying cause for the exception.
SzException(string)
Constructs with a message explaining the reason for the exception.
public SzException(string message)
Parameters
messagestringThe message explaining the reason for the exception.
SzException(string, Exception)
Constructs with a message explaining the reason for the exception and
the Exception that is the underlying cause for the exception.
public SzException(string message, Exception cause)
Parameters
messagestringThe message explaining the reason for the exception.
causeExceptionThe underlying cause for the exception.
Properties
ErrorCode
Gets the underlying Senzing error code associated with the
exception or null if no error code was associated
with the exception.
public long? ErrorCode { get; }
Property Value
- long?