Class ShiroException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shiro.lang.ShiroException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CodecException,InstantiationException,SerializationException,UnknownClassException
Root exception for all Shiro runtime exceptions. This class is used as the root instead
of
SecurityException to remove the potential for conflicts; many other
frameworks and products (such as J2EE containers) perform special operations when
encountering SecurityException.- Since:
- 0.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 Details
-
ShiroException
public ShiroException()Creates a new ShiroException. -
ShiroException
Constructs a new ShiroException.- Parameters:
message- the reason for the exception
-
ShiroException
Constructs a new ShiroException.- Parameters:
cause- the underlying Throwable that caused this exception to be thrown.
-
ShiroException
Constructs a new ShiroException.- Parameters:
message- the reason for the exceptioncause- the underlying Throwable that caused this exception to be thrown.
-