Class: ActionController::ParamsParser

Inherits:
Object
  • Object
show all
Defined in:
lib/request_exception_handler.rb

Overview

Rails 2.3.x

Instance Method Summary collapse

Instance Method Details

#parse_formatted_parameters_with_exception_handler(env) ⇒ Object



155
156
157
158
159
160
161
162
163
164
# File 'lib/request_exception_handler.rb', line 155

def parse_formatted_parameters_with_exception_handler(env)
  begin
    out = parse_formatted_parameters_without_exception_handler(env)
    RequestExceptionHandler.reset_request_exception # make sure it's nil
    out
  rescue Exception => e # YAML, XML or Ruby code block errors
    handler = RequestExceptionHandler.parse_request_parameters_exception_handler
    handler ? handler.call(ActionController::Request.new(env), e) : raise
  end
end