class Hoodoo::Services::Middleware::ExceptionReporting::Payload
Implementation
detail of Hoodoo::Services::Middleware::ExceptionReporting
used to carry multiple parameters describing exception related data through the Hoodoo::Communicators::Pool#communicate
mechanism.
Attributes
context[RW]
A Hoodoo::Services::Context
instance describing the in-flight request/response cycle, if there is one. May be nil
.
exception[RW]
Exception (or Exception subclass) instance.
rack_env[RW]
Rack
environment (the unprocessed, original Hash). May be nil
.
Public Class Methods
new( exception:, rack_env: nil, context: nil )
click to toggle source
Initialize this instance with named parameters:
exception
-
Exception (or Exception subclass) instance. Mandatory.
rack_env
-
Rack
environment hash. Optional. context
-
Hoodoo::Services::Context
instance. Optional.
# File lib/hoodoo/services/middleware/exception_reporting/exception_reporting.rb, line 128 def initialize( exception:, rack_env: nil, context: nil ) @exception = exception @rack_env = rack_env @context = context end