public class AccessDeniedException
extends java.lang.RuntimeException
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 cause)
Constructs an
AccessDeniedException with the specified message and
root cause. |
public AccessDeniedException(java.lang.String msg)
AccessDeniedException with the specified message.msg - the detail messagepublic AccessDeniedException(java.lang.String msg,
java.lang.Throwable cause)
AccessDeniedException with the specified message and
root cause.msg - the detail messagecause - root cause