Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.access.AccessDeniedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationDeniedException
,AuthorizationServiceException
,CsrfException
,CsrfException
Thrown if an
Authentication
object does not hold a required authority.- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs anAccessDeniedException
with the specified message.AccessDeniedException
(String msg, Throwable cause) Constructs anAccessDeniedException
with the specified message and root cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AccessDeniedException
Constructs anAccessDeniedException
with the specified message.- Parameters:
msg
- the detail message
-
AccessDeniedException
Constructs anAccessDeniedException
with the specified message and root cause.- Parameters:
msg
- the detail messagecause
- root cause
-