class RescueRegistry::RailsExceptionHandler
Builds a payload in the style of the Rails default handling for compatibility
Public Instance Methods
build_payload(show_details: false, traces: nil)
click to toggle source
# File lib/rescue_registry/exception_handler.rb, line 146 def build_payload(show_details: false, traces: nil) body = { status: status_code, error: title } if show_details body[:exception] = exception.inspect if traces body[:traces] = traces end end body end