Exception: NOTAM::ParseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, item: nil) ⇒ ParseError

Returns a new instance of ParseError.



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

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

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



5
6
7
# File 'lib/notam/errors.rb', line 5

def item
  @item
end