Exception: Kwalify::YamlSyntaxError
- Inherits:
-
KwalifyError
- Object
- StandardError
- KwalifyError
- Kwalify::YamlSyntaxError
- Defined in:
- lib/kwalify/errors.rb
Instance Attribute Summary collapse
-
#error_symbol ⇒ Object
Returns the value of attribute error_symbol.
-
#linenum ⇒ Object
Returns the value of attribute linenum.
Instance Method Summary collapse
-
#initialize(msg, linenum, error_symbol) ⇒ YamlSyntaxError
constructor
A new instance of YamlSyntaxError.
Constructor Details
#initialize(msg, linenum, error_symbol) ⇒ YamlSyntaxError
Returns a new instance of YamlSyntaxError.
68 69 70 71 72 |
# File 'lib/kwalify/errors.rb', line 68 def initialize(msg, linenum, error_symbol) super("line #{linenum}: #{msg}") @linenum = linenum @error_symbol end |
Instance Attribute Details
#error_symbol ⇒ Object
Returns the value of attribute error_symbol.
73 74 75 |
# File 'lib/kwalify/errors.rb', line 73 def error_symbol @error_symbol end |
#linenum ⇒ Object
Returns the value of attribute linenum.
73 74 75 |
# File 'lib/kwalify/errors.rb', line 73 def linenum @linenum end |