Class: ErrorsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ErrorsController
- Defined in:
- app/controllers/errors_controller.rb
Instance Method Summary collapse
Methods included from OceanApplicationController
#api_render, #authorize_action, #collection_etag, #default_url_options, #filtered_params, #find_connectee, #render_api_error, #render_head_204, #render_validation_errors, #require_x_api_token, #set_updater
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/errors_controller.rb', line 7 def show @exception = env['action_dispatch.exception'] @status_code = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code #@rescue_response = ActionDispatch::ExceptionWrapper.rescue_responses[@exception.class.name] render_api_error @status_code, @exception. end |