public class DataAccessException extends Exception
| Modifier and Type | Class and Description |
|---|---|
static class |
DataAccessException.Reason |
| Constructor and Description |
|---|
DataAccessException(DataAccessException.Reason reason,
String msg)
Constructor for DataAccessException.
|
DataAccessException(DataAccessException.Reason reason,
String msg,
Throwable cause)
Constructor for DataAccessException.
|
DataAccessException(String msg)
Constructor for DataAccessException.
|
DataAccessException(String msg,
Throwable cause)
Constructor for DataAccessException.
|
| Modifier and Type | Method and Description |
|---|---|
DataAccessException.Reason |
getReason() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DataAccessException(String msg)
msg - the detail messagepublic DataAccessException(DataAccessException.Reason reason, String msg)
reason - the reasonmsg - the detail messagepublic DataAccessException(String msg, Throwable cause)
msg - the detail messagecause - the root cause (usually from using a underlying data access API such as JDBC)public DataAccessException(DataAccessException.Reason reason, String msg, Throwable cause)
reason - the reasonmsg - the detail messagecause - the root cause (usually from using a underlying data access API such as JDBC)public DataAccessException.Reason getReason()
Copyright © 2019. All rights reserved.