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.
- #message ⇒ Object
Constructor Details
#initialize(definition, value) ⇒ IllegalOptionValueError
Returns a new instance of IllegalOptionValueError.
16 17 18 19 |
# File 'lib/cri/parser.rb', line 16 def initialize(definition, value) @definition = definition @value = value 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 |
Instance Method Details
#message ⇒ Object
21 22 23 |
# File 'lib/cri/parser.rb', line 21 def "invalid value #{value.inspect} for #{@definition.formatted_name} option" end |