Skip to content

class Athena::Security::Exception::AccessDenied
inherits RuntimeError #

Raised when the current user is not granted access, e.g. because it lacks a required role.

Included modules

Athena::Security::Exception

Constructors#

.new(message : String = "Access Denied.", cause : ::Exception | Nil = nil)#

View source

Methods#

#access_decision : ASEC::Authorization::AccessDecision | ::Nil#

The decision that denied the access, if any, which explains it.

View source

#access_decision=(access_decision : ASEC::Authorization::AccessDecision | Nil)#

The decision that denied the access, if any, which explains it.

View source

#attribute : String | ::Nil#

The attribute that was denied, if any.

View source

#attribute=(attribute : String | Nil)#

The attribute that was denied, if any.

View source