public class

AccessDeniedException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.security.access.AccessDeniedException
Known Direct Subclasses

Class Overview

Thrown if an Authentication object does not hold a required authority.

Summary

Public Constructors
AccessDeniedException(String msg)
Constructs an AccessDeniedException with the specified message.
AccessDeniedException(String msg, Throwable t)
Constructs an AccessDeniedException with the specified message and root cause.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AccessDeniedException (String msg)

Constructs an AccessDeniedException with the specified message.

Parameters
msg the detail message

public AccessDeniedException (String msg, Throwable t)

Constructs an AccessDeniedException with the specified message and root cause.

Parameters
msg the detail message
t root cause