class ActionController::BadRequest

:nodoc:

def initialize(msg = nil, e = nil)

:nodoc:
def initialize(msg = nil, e = nil)
  if e
    ActiveSupport::Deprecation.warn("Passing #original_exception is deprecated and has no effect. " \
                                    "Exceptions will automatically capture the original exception.", caller)
  end
  super(msg)
  set_backtrace $!.backtrace if $!
end

def original_exception

def original_exception
  ActiveSupport::Deprecation.warn("#original_exception is deprecated. Use #cause instead.", caller)
  cause
end