lib/quirky-api/response/errors.rb
# Returns 500 (Internal Server Error).
#
# @param e [Exception] The exception that was raised.
#
Returns 500 (Internal Server Error).
Returns 500 ( Internal Server Error ) .
def internal_error(e)
        if QuirkyApi.exception_handler
          QuirkyApi.exception_handler.call(e)
        else
          Rails.logger.error e.message
        end
        error_response('Something went wrong.')
      end
def internal_error ( e ) if QuirkyApi . exception_handler QuirkyApi . exception_handler . call ( e ) else Rails . logger . error e . message end error_response ( 'Something went wrong.' ) end
Returns 500 (Internal Server Error).
Returns 500 ( Internal Server Error ) .
e
The exception that was raised.
The exception that was raised .