org.apache.shiro
Class ShiroException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shiro.ShiroException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationException, AuthorizationException, CacheException, CodecException, ConfigurationException, CryptoException, DataAccessException, EnvironmentException, ExecutionException, InstantiationException, InvalidPermissionStringException, SerializationException, SessionException, UnavailableConstructorException, UnavailableSecurityManagerException, UnknownClassException

public class ShiroException
extends RuntimeException

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:
Serialized Form

Constructor Summary
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 exception
cause - the underlying Throwable that caused this exception to be thrown.


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.