Exception: IERS::ParseError

Inherits:
DataError show all
Defined in:
lib/iers/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, path: nil, line_number: nil) ⇒ ParseError

Returns a new instance of ParseError.



14
15
16
17
18
# File 'lib/iers/errors.rb', line 14

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

Instance Attribute Details

#line_numberInteger? (readonly)

Returns:

  • (Integer, nil)


12
13
14
# File 'lib/iers/errors.rb', line 12

def line_number
  @line_number
end

#pathPathname? (readonly)

Returns:

  • (Pathname, nil)


10
11
12
# File 'lib/iers/errors.rb', line 10

def path
  @path
end