Implementation detail of Hoodoo::Services::Middleware::ExceptionReporting used to carry multiple parameters describing exception related data through the Hoodoo::Communicators::Pool#communicate mechanism.

Methods
N
Attributes
[RW] context

A Hoodoo::Services::Context instance describing the in-flight request/response cycle, if there is one. May be nil.

[RW] exception

Exception (or Exception subclass) instance.

[RW] rack_env

Rack environment (the unprocessed, original Hash). May be nil.

Class Public methods
new( exception:, rack_env: nil, context: nil )

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