Package org.apache.shiro
Class ShiroException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.shiro.ShiroException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationException
,AuthorizationException
,CacheException
,CodecException
,ConfigurationException
,CryptoException
,DataAccessException
,EnvironmentException
,ExecutionException
,InstantiationException
,InvalidPermissionStringException
,SerializationException
,SessionException
,UnavailableSecurityManagerException
,UnknownClassException
public class ShiroException extends RuntimeException
Root exception for all Shiro runtime exceptions. This class is used as the root instead ofSecurityException
to remove the potential for conflicts; many other frameworks and products (such as J2EE containers) perform special operations when encounteringSecurityException
.- Since:
- 0.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShiroException()
Creates a new ShiroException.ShiroException(String message)
Constructs a new ShiroException.ShiroException(String message, Throwable cause)
Constructs a new ShiroException.ShiroException(Throwable cause)
Constructs a new ShiroException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ShiroException
public ShiroException()
Creates a new ShiroException.
-
ShiroException
public ShiroException(String message)
Constructs a new ShiroException.- Parameters:
message
- the reason for the exception
-
ShiroException
public ShiroException(Throwable cause)
Constructs a new ShiroException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
ShiroException
public ShiroException(String message, Throwable cause)
Constructs a new ShiroException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown.
-
-