Exception: BetterHtml::ParserError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/better_html/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, position, line, column) ⇒ ParserError

Returns a new instance of ParserError.



19
20
21
22
23
24
# File 'lib/better_html/errors.rb', line 19

def initialize(message, position, line, column)
  super(message)
  @position = position
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



17
18
19
# File 'lib/better_html/errors.rb', line 17

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



17
18
19
# File 'lib/better_html/errors.rb', line 17

def line
  @line
end

#positionObject (readonly)

Returns the value of attribute position.



17
18
19
# File 'lib/better_html/errors.rb', line 17

def position
  @position
end