class ActionController::ParamsParser

Public Instance Methods

parse_formatted_parameters_with_exception_handler(env) click to toggle source
# 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