Exception: Siding::LifeCycle::HookError
- Defined in:
- lib/siding/life_cycle.rb
Instance Attribute Summary collapse
-
#cause_error ⇒ Object
readonly
Returns the value of attribute cause_error.
-
#hook_name ⇒ Object
readonly
Returns the value of attribute hook_name.
-
#phase ⇒ Object
readonly
Returns the value of attribute phase.
Instance Method Summary collapse
-
#initialize(hook_name:, phase:, cause_error:) ⇒ HookError
constructor
A new instance of HookError.
Constructor Details
#initialize(hook_name:, phase:, cause_error:) ⇒ HookError
Returns a new instance of HookError.
10 11 12 13 14 15 |
# File 'lib/siding/life_cycle.rb', line 10 def initialize(hook_name:, phase:, cause_error:) @hook_name = hook_name @phase = phase @cause_error = cause_error super("siding #{phase} hook #{hook_name.inspect} raised #{cause_error.class}: #{cause_error.}") end |
Instance Attribute Details
#cause_error ⇒ Object (readonly)
Returns the value of attribute cause_error.
8 9 10 |
# File 'lib/siding/life_cycle.rb', line 8 def cause_error @cause_error end |
#hook_name ⇒ Object (readonly)
Returns the value of attribute hook_name.
8 9 10 |
# File 'lib/siding/life_cycle.rb', line 8 def hook_name @hook_name end |
#phase ⇒ Object (readonly)
Returns the value of attribute phase.
8 9 10 |
# File 'lib/siding/life_cycle.rb', line 8 def phase @phase end |