public class SQLDatabaseException extends DataStorageException
Exception thrown by SQL functions when an error occurs.
| Modifier | Constructor and Description |
|---|---|
|
SQLDatabaseException()
Default constructor.
|
protected |
SQLDatabaseException(java.lang.String message,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static SQLDatabaseException |
withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
|
static SQLDatabaseException |
withCauseAndMessage(java.lang.RuntimeException cause,
java.lang.String message)
Return a new exception with the specified root cause and message text.
|
static SQLDatabaseException |
withMessage(java.lang.String message)
Return a new exception with the specified message text.
|
getSafeMessage, safe, setSafeMessagegetCause, getMessage, setCause, setMessage, toStringprotected SQLDatabaseException(java.lang.String message,
java.lang.Throwable cause)
public SQLDatabaseException()
Default constructor.
public static SQLDatabaseException withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
cause - (nullable) Root cause.public static SQLDatabaseException withCauseAndMessage(java.lang.RuntimeException cause, java.lang.String message)
Return a new exception with the specified root cause and message text.
cause - (nullable) Root cause.message - (nullable) Message text.public static SQLDatabaseException withMessage(java.lang.String message)
Return a new exception with the specified message text.
message - (nullable) Message text.