Exception: Moxml::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/moxml/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, line: nil, column: nil) ⇒ ParseError

Returns a new instance of ParseError.



9
10
11
12
13
# File 'lib/moxml/error.rb', line 9

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



7
8
9
# File 'lib/moxml/error.rb', line 7

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



7
8
9
# File 'lib/moxml/error.rb', line 7

def line
  @line
end