module Diffend::HandleErrors::BuildExceptionPayload
Module responsible for building exception payload
Public Class Methods
call(exception, payload)
click to toggle source
Build exception payload
@param exception [Exception, NilClass] expection that was raised @param payload [Hash] with versions to check
@return [Hash]
# File lib/diffend/handle_errors/build_exception_payload.rb, line 17 def call(exception, payload) { request_id: SecureRandom.uuid, payload: payload, exception: { class: exception&.class, message: exception&.message, backtrace: exception&.backtrace } }.freeze end