module Beekeeper::Rescuer
Constants
- RESCUABLE_ERRORS
Public Instance Methods
handle_error(error)
click to toggle source
# File lib/beekeeper/rescuer.rb, line 18 def handle_error(error) Logger.error(error) response = ExceptionBlueprinter.render_as_hash error, view: :basic, request: request render json: response, status: response[:status] end