Class DataAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shiro.lang.ShiroException
org.apache.shiro.dao.DataAccessException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidResourceUsageException
Generic exception representing a problem when attempting to access data.
The idea was borrowed from the Spring Framework, which has a nice model for a generic DAO exception hierarchy.
Unfortunately we can't use it as we can't force a Spring API usage on all Shiro end-users.
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataAccessException(String message) Constructs a DataAccessException with a message explaining the cause of the exception.DataAccessException(String message, Throwable cause) Constructs a DataAccessException with a message explaining the cause of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataAccessException
Constructs a DataAccessException with a message explaining the cause of the exception.- Parameters:
message- the message explaining the cause of the exception
-
DataAccessException
Constructs a DataAccessException with a message explaining the cause of the exception.- Parameters:
message- the explanationcause- the root cause of the exception, typically an API-specific exception
-