Class SzDatabaseException
Extends SzUnrecoverableException to define an exceptional condition triggered by a database error from which we cannot recover (e.g.: missing or unexpected schema definition).
public class SzDatabaseException : SzUnrecoverableException, ISerializable
- Inheritance
-
SzDatabaseException
- Implements
- Inherited Members
Constructors
SzDatabaseException()
Default constructor.
public SzDatabaseException()
SzDatabaseException(Exception)
Constructs with the {@link Throwable} that is the underlying cause for the exception.
public SzDatabaseException(Exception cause)
Parameters
causeExceptionThe underlying cause for the exception.
SzDatabaseException(long?, string)
Constructs with a message explaining the reason for the exception.
public SzDatabaseException(long? errorCode, string message)
Parameters
errorCodelong?The underlying Senzing error code.
messagestringThe message explaining the reason for the exception.
SzDatabaseException(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 SzDatabaseException(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.
SzDatabaseException(string)
Constructs with a message explaining the reason for the exception.
public SzDatabaseException(string message)
Parameters
messagestringThe message explaining the reason for the exception.
SzDatabaseException(string, Exception)
Constructs with a message explaining the reason for the exception and
the Exception that is the underlying cause for the exception.
public SzDatabaseException(string message, Exception cause)