Exception: Jade::Interop::TaskError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



35
36
37
# File 'lib/jade/interop/error.rb', line 35

def error
  @error
end