Exception: Baha::ContainerOptions::InvalidOptionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Baha::ContainerOptions::InvalidOptionError
- Defined in:
- lib/baha/container_options/invalid_option_error.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value, reason) ⇒ InvalidOptionError
constructor
A new instance of InvalidOptionError.
Constructor Details
#initialize(key, value, reason) ⇒ InvalidOptionError
Returns a new instance of InvalidOptionError.
7 8 9 10 11 12 |
# File 'lib/baha/container_options/invalid_option_error.rb', line 7 def initialize(key,value,reason) super("Unable to validate option: #{key}. '#{value}' #{reason}") @key = key @value = value @reason = reason end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/baha/container_options/invalid_option_error.rb', line 4 def key @key end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
6 7 8 |
# File 'lib/baha/container_options/invalid_option_error.rb', line 6 def reason @reason end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/baha/container_options/invalid_option_error.rb', line 5 def value @value end |