Methods
C
Instance Public methods
call(env)
# File actionpack/test/dispatch/show_exceptions_test.rb, line 6
def call(env)
  req = ActionDispatch::Request.new(env)
  case req.path
  when "/not_found"
    raise AbstractController::ActionNotFound
  when "/bad_params"
    raise ActionDispatch::ParamsParser::ParseError.new("", StandardError.new)
  when "/method_not_allowed"
    raise ActionController::MethodNotAllowed
  when "/unknown_http_method"
    raise ActionController::UnknownHttpMethod
  when "/not_found_original_exception"
    raise ActionView::Template::Error.new('template', AbstractController::ActionNotFound.new)
  else
    raise "puke!"
  end
end