method
new
v5.0.0.1 -
Show latest stable
- Class:
ActionDispatch::Session::SessionRestoreError
new(const_error = nil)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 11
def initialize(const_error = nil)
if const_error
ActiveSupport::Deprecation.warn("Passing #original_exception is deprecated and has no effect. " "Exceptions will automatically capture the original exception.", caller)
end
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: #{$!.message} [#{$!.class}])\n")
set_backtrace $!.backtrace
end