Exception: Eeml::Exceptions::BadEeml

Inherits:
StandardError
  • Object
show all
Defined in:
lib/eeml/exceptions.rb

Overview

Eeml being parsed was valid XML, but bad EEML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#line_numObject

no guarantees either is available



11
12
13
# File 'lib/eeml/exceptions.rb', line 11

def line_num
  @line_num
end

#node_nameObject

no guarantees either is available



11
12
13
# File 'lib/eeml/exceptions.rb', line 11

def node_name
  @node_name
end

Instance Method Details

#to_sObject



12
13
14
15
16
17
# File 'lib/eeml/exceptions.rb', line 12

def to_s
  extras = []
  extras << " node name: '" + node_name + "'" if node_name
  extras << " line_num: #{line_num}" if line_num
  super.to_s + extras.join(',')
end