Skip to content

class Athena::Security::Exception::UserNotFound
inherits Athena::Security::Exception::Authentication #

Raised when no user exists for a given identifier.

Constructors#

.new(message : String | Nil = nil, cause : ::Exception | Nil = nil, *, user_identifier : String | Nil = nil)#

View source

Methods#

#message_data : Hash(String, String)#

Returns the data to interpolate into the #message_key.

View source

#message_key : String#

Returns a message describing why the user could not be authenticated, which is safe to show to users.

View source

#user_identifier : String | ::Nil#

The identifier of the user that could not be found, e.g. a username or email address.

View source

#user_identifier=(user_identifier : String | Nil)#

The identifier of the user that could not be found, e.g. a username or email address.

View source