Exception: Moxml::ParseError

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

Overview

Parsing related errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ParseError.



10
11
12
13
14
15
# File 'lib/moxml/errors.rb', line 10

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



8
9
10
# File 'lib/moxml/errors.rb', line 8

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



8
9
10
# File 'lib/moxml/errors.rb', line 8

def line
  @line
end

#sourceObject (readonly)

Returns the value of attribute source.



8
9
10
# File 'lib/moxml/errors.rb', line 8

def source
  @source
end