Exception: ActionDispatch::Session::SessionRestoreError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/action_dispatch/middleware/session/abstract_store.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(const_error) ⇒ SessionRestoreError

Returns a new instance of SessionRestoreError.



12
13
14
15
16
17
18
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 12

def initialize(const_error)
  @original_exception = const_error

  super("Session contains objects whose class definition isn't available.\n" +
    "Remember to require the classes for all objects kept in the session.\n" +
    "(Original exception: #{const_error.message} [#{const_error.class}])\n")
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



10
11
12
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 10

def original_exception
  @original_exception
end