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.RuntimeException
Thrown if anAuthentication
object does not hold a required authority.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(java.lang.String msg)
Constructs anAccessDeniedException
with the specified message.AccessDeniedException(java.lang.String msg, java.lang.Throwable cause)
Constructs anAccessDeniedException
with the specified message and root cause.
-
-
-
Constructor Detail
-
AccessDeniedException
public AccessDeniedException(java.lang.String msg)
Constructs anAccessDeniedException
with the specified message.- Parameters:
msg
- the detail message
-
AccessDeniedException
public AccessDeniedException(java.lang.String msg, java.lang.Throwable cause)
Constructs anAccessDeniedException
with the specified message and root cause.- Parameters:
msg
- the detail messagecause
- root cause
-
-