Exception: ActionController::BadRequest

Inherits:
ActionControllerError show all
Defined in:
actionpack/lib/action_controller/metal/exceptions.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, e = nil) ⇒ BadRequest

Returns a new instance of BadRequest.



8
9
10
11
12
13
14
# File 'actionpack/lib/action_controller/metal/exceptions.rb', line 8

def initialize(type = nil, e = nil)
  return super() unless type && e

  super("Invalid #{type} parameters: #{e.message}")
  @original_exception = e
  set_backtrace e.backtrace
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception



6
7
8
# File 'actionpack/lib/action_controller/metal/exceptions.rb', line 6

def original_exception
  @original_exception
end