Class AccessDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.access.AccessDeniedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AuthorizationServiceException,CsrfException,CsrfException
public class AccessDeniedException extends java.lang.RuntimeExceptionThrown if anAuthenticationobject does not hold a required authority.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(java.lang.String msg)Constructs anAccessDeniedExceptionwith the specified message.AccessDeniedException(java.lang.String msg, java.lang.Throwable cause)Constructs anAccessDeniedExceptionwith the specified message and root cause.
-
-
-
Constructor Detail
-
AccessDeniedException
public AccessDeniedException(java.lang.String msg)
Constructs anAccessDeniedExceptionwith the specified message.- Parameters:
msg- the detail message
-
AccessDeniedException
public AccessDeniedException(java.lang.String msg, java.lang.Throwable cause)Constructs anAccessDeniedExceptionwith the specified message and root cause.- Parameters:
msg- the detail messagecause- root cause
-
-