Exception: Elparser::ParserError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, pos, sample) ⇒ ParserError

Returns a new instance of ParserError.



229
230
231
232
233
# File 'lib/elparser.rb', line 229

def initialize(message, pos, sample)
  @message = message
  @pos = pos
  @sample = sample
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



228
229
230
# File 'lib/elparser.rb', line 228

def message
  @message
end

#posObject (readonly)

Returns the value of attribute pos.



228
229
230
# File 'lib/elparser.rb', line 228

def pos
  @pos
end

#sampleObject (readonly)

Returns the value of attribute sample.



228
229
230
# File 'lib/elparser.rb', line 228

def sample
  @sample
end