Exception: Flor::Caller::WrappedSpawnError

Inherits:
SpawnError
  • Object
show all
Defined in:
lib/flor/unit/caller.rb

Instance Attribute Summary collapse

Attributes inherited from SpawnError

#conf, #ctx

Instance Method Summary collapse

Methods inherited from SpawnError

#details

Constructor Details

#initialize(conf, ctx, err) ⇒ WrappedSpawnError

Returns a new instance of WrappedSpawnError.



283
284
285
286
287
288
289
290
# File 'lib/flor/unit/caller.rb', line 283

def initialize(conf, ctx, err)

  @cause = err

  super(conf, ctx, "wrapped: #{err.class.name}: #{err.message}")

  set_backtrace(err.backtrace)
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



281
282
283
# File 'lib/flor/unit/caller.rb', line 281

def cause
  @cause
end

Instance Method Details

#add_details(details) ⇒ Object



292
293
294
295
# File 'lib/flor/unit/caller.rb', line 292

def add_details(details)

  details[:cause] = { kla: @cause.class.name, msg: @cause.message }
end