Exception: Authentication::Logic::Session::Existence::SessionInvalidError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/auth/logic/session/base.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ SessionInvalidError

Returns a new instance of SessionInvalidError.



23
24
25
26
27
28
29
30
# File 'lib/auth/logic/session/base.rb', line 23

def initialize(session)
  message = I18n.t(
    "error_messages.session_invalid",
    default: "Your session is invalid and has the following errors:"
  )
  message += " #{session.errors.full_messages.to_sentence}"
  super message
end