Exception: Flor::Caller::WrappedSpawnError
- Inherits:
-
SpawnError
- Object
- StandardError
- SpawnError
- Flor::Caller::WrappedSpawnError
- Defined in:
- lib/flor/unit/caller.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Attributes inherited from SpawnError
Instance Method Summary collapse
- #add_details(details) ⇒ Object
-
#initialize(conf, ctx, err) ⇒ WrappedSpawnError
constructor
A new instance of WrappedSpawnError.
Methods inherited from SpawnError
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.}") set_backtrace(err.backtrace) end |
Instance Attribute Details
#cause ⇒ Object (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. } end |