Exception: Phronomy::GuardrailError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, guardrail: nil) ⇒ GuardrailError

Returns a new instance of GuardrailError.



51
52
53
54
# File 'lib/phronomy.rb', line 51

def initialize(message, guardrail: nil)
  super(message)
  @guardrail = guardrail
end

Instance Attribute Details

#guardrailObject (readonly)

Returns the value of attribute guardrail.



49
50
51
# File 'lib/phronomy.rb', line 49

def guardrail
  @guardrail
end