org.springframework.security.access
Class AccessDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.security.access.AccessDeniedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthorizationServiceException

public class AccessDeniedException
extends java.lang.RuntimeException

Thrown if an Authentication object does not hold a required authority.

See Also:
Serialized Form

Constructor Summary
AccessDeniedException(java.lang.String msg)
          Constructs an AccessDeniedException with the specified message.
AccessDeniedException(java.lang.String msg, java.lang.Throwable t)
          Constructs an AccessDeniedException with the specified message and root cause.
 
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

AccessDeniedException

public AccessDeniedException(java.lang.String msg)
Constructs an AccessDeniedException with the specified message.

Parameters:
msg - the detail message

AccessDeniedException

public AccessDeniedException(java.lang.String msg,
                             java.lang.Throwable t)
Constructs an AccessDeniedException with the specified message and root cause.

Parameters:
msg - the detail message
t - root cause