Exception: Jade::Interop::TaskError
- Defined in:
- lib/jade/interop/error.rb
Overview
Raised by bang-suffixed Task wrappers when the underlying Task ran to the Err arm. The encoded err value is available on ‘.error` for structured handling — pattern-match on it for shape-specific recovery, or just inspect for logging.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ TaskError
constructor
A new instance of TaskError.
Constructor Details
#initialize(error) ⇒ TaskError
Returns a new instance of TaskError.
37 38 39 40 |
# File 'lib/jade/interop/error.rb', line 37 def initialize(error) @error = error super("Task returned an error: #{error.inspect}") end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
35 36 37 |
# File 'lib/jade/interop/error.rb', line 35 def error @error end |