public class AccessDeniedException extends SpringSecurityException
Authentication
object does not hold a required authority.Constructor and Description |
---|
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. |
contains, getMessage, getMostSpecificCause, getRootCause
public AccessDeniedException(java.lang.String msg)
AccessDeniedException
with the specified
message.msg
- the detail messagepublic AccessDeniedException(java.lang.String msg, java.lang.Throwable t)
AccessDeniedException
with the specified
message and root cause.msg
- the detail messaget
- root cause