Exception: ActionController::BadRequest
- Inherits:
-
ActionControllerError
- Object
- StandardError
- ActionControllerError
- ActionController::BadRequest
- Defined in:
- lib/action_controller/metal/exceptions.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(type = nil, e = nil) ⇒ BadRequest
constructor
A new instance of BadRequest.
Constructor Details
#initialize(type = nil, e = nil) ⇒ BadRequest
Returns a new instance of BadRequest.
8 9 10 11 12 13 14 |
# File 'lib/action_controller/metal/exceptions.rb', line 8 def initialize(type = nil, e = nil) return super() unless type && e super("Invalid #{type} parameters: #{e.}") @original_exception = e set_backtrace e.backtrace end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
6 7 8 |
# File 'lib/action_controller/metal/exceptions.rb', line 6 def original_exception @original_exception end |