Exception: Siding::LifeCycle::HookError

Inherits:
Error
  • Object
show all
Defined in:
lib/siding/life_cycle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message}")
end

Instance Attribute Details

#cause_errorObject (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_nameObject (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

#phaseObject (readonly)

Returns the value of attribute phase.



8
9
10
# File 'lib/siding/life_cycle.rb', line 8

def phase
  @phase
end