Module: Diffend::HandleErrors::BuildExceptionPayload
- Defined in:
- lib/diffend/handle_errors/build_exception_payload.rb
Overview
Module responsible for building exception payload
Class Method Summary collapse
-
.call(exception, payload) ⇒ Hash
Build exception payload.
Class Method Details
.call(exception, payload) ⇒ Hash
Build exception payload
17 18 19 20 21 22 23 24 25 26 27 |
# 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&., backtrace: exception&.backtrace } }.freeze end |