org.apache.shiro.authz
Class UnauthorizedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shiro.ShiroException
                  extended by org.apache.shiro.authz.AuthorizationException
                      extended by org.apache.shiro.authz.UnauthorizedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HostUnauthorizedException

public class UnauthorizedException
extends AuthorizationException

Thrown to indicate a requested operation or access to a requested resource is not allowed.

Since:
0.1
See Also:
Serialized Form

Constructor Summary
UnauthorizedException()
          Creates a new UnauthorizedException.
UnauthorizedException(String message)
          Constructs a new UnauthorizedException.
UnauthorizedException(String message, Throwable cause)
          Constructs a new UnauthorizedException.
UnauthorizedException(Throwable cause)
          Constructs a new UnauthorizedException.
 
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

UnauthorizedException

public UnauthorizedException()
Creates a new UnauthorizedException.


UnauthorizedException

public UnauthorizedException(String message)
Constructs a new UnauthorizedException.

Parameters:
message - the reason for the exception

UnauthorizedException

public UnauthorizedException(Throwable cause)
Constructs a new UnauthorizedException.

Parameters:
cause - the underlying Throwable that caused this exception to be thrown.

UnauthorizedException

public UnauthorizedException(String message,
                             Throwable cause)
Constructs a new UnauthorizedException.

Parameters:
message - the reason for the exception
cause - the underlying Throwable that caused this exception to be thrown.


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