lib/shp_api/json_responder.rb
# Render generic 500 error message (rescue_from)
Render generic 500 error message (rescue_from)
Render generic 500 error message ( rescue_from )
def exception(exception: nil)
      msg = exception ? exception.message : "Internal Server Error"
      @controller.render partial: "shp_api/error", locals: { message: msg, error_code: "exception" }, status: 500
      return false
    end
def exception ( exception : nil ) msg = exception ? exception . message : "Internal Server Error" @controller . render partial : "shp_api/error" , locals : { message : msg , error_code : "exception" } , status : 500 return false end
Render generic 500 error message (rescue_from)
Render generic 500 error message ( rescue_from )
exception
<not_specific>