Exception: Mu::Action::FailureError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mu/action.rb

Overview

Exception class for action failures. Wraps the original error and includes metadata for debugging and logging purposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, meta: {}) ⇒ FailureError

Returns a new instance of FailureError.



58
59
60
61
62
# File 'lib/mu/action.rb', line 58

def initialize(error, meta: {})
  @error = error
  @meta = meta
  super(error)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



56
57
58
# File 'lib/mu/action.rb', line 56

def error
  @error
end

#metaObject (readonly)

Returns the value of attribute meta.



56
57
58
# File 'lib/mu/action.rb', line 56

def meta
  @meta
end