Exception: Mu::Action::FailureError
- Inherits:
-
StandardError
- Object
- StandardError
- Mu::Action::FailureError
- 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
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(error, meta: {}) ⇒ FailureError
constructor
A new instance of FailureError.
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 = super(error) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
56 57 58 |
# File 'lib/mu/action.rb', line 56 def error @error end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
56 57 58 |
# File 'lib/mu/action.rb', line 56 def @meta end |