Exception: ActionDispatch::Session::SessionRestoreError
- Inherits:
-
StandardError
- Object
- StandardError
- ActionDispatch::Session::SessionRestoreError
- Defined in:
- lib/action_dispatch/middleware/session/abstract_store.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(const_error) ⇒ SessionRestoreError
constructor
A new instance of SessionRestoreError.
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.} [#{const_error.class}])\n") end |
Instance Attribute Details
#original_exception ⇒ Object (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 |