Exception: Kwalify::YamlSyntaxError

Inherits:
KwalifyError
  • Object
show all
Defined in:
lib/kwalify/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_symbolObject

Returns the value of attribute error_symbol.



73
74
75
# File 'lib/kwalify/errors.rb', line 73

def error_symbol
  @error_symbol
end

#linenumObject

Returns the value of attribute linenum.



73
74
75
# File 'lib/kwalify/errors.rb', line 73

def linenum
  @linenum
end