public class DatabaseException extends RuntimeException
| Constructor and Description |
|---|
DatabaseException(String message) |
DatabaseException(String message,
Throwable cause) |
DatabaseException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseException |
wrap(String message,
Throwable cause)
Wrap an exception with a DatabaseException, taking into account all known
subtypes such that we wrap subtypes in a matching type (so we don't obscure
the type available to catch clauses).
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DatabaseException(String message)
public DatabaseException(Throwable cause)
public static DatabaseException wrap(String message, Throwable cause)
message - the new wrapping exception will have this messagecause - the exception to be wrappedCopyright © 2016. All rights reserved.