Exception: Cri::Parser::IllegalOptionValueError
- Defined in:
- lib/cri/parser.rb
Overview
Error that will be raised when an option with an invalid or non-transformable value is encountered.
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(definition, value) ⇒ IllegalOptionValueError
constructor
A new instance of IllegalOptionValueError.
Constructor Details
#initialize(definition, value) ⇒ IllegalOptionValueError
Returns a new instance of IllegalOptionValueError.
16 17 18 19 20 21 |
# File 'lib/cri/parser.rb', line 16 def initialize(definition, value) super("invalid value #{value.inspect} for #{definition.formatted_name} option") @value = value @definition = definition end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
13 14 15 |
# File 'lib/cri/parser.rb', line 13 def definition @definition end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
14 15 16 |
# File 'lib/cri/parser.rb', line 14 def value @value end |