Exception: Alumina::ParseError

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

Overview

Raised when invalid HIN data is encountered.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line, reason) ⇒ ParseError

Returns a new instance of ParseError.



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

def initialize(line, reason)
  @line = line
  super(reason)
end

Instance Attribute Details

#lineFixnum

Returns The line in the HIN data at which the error occurred.

Returns:

  • (Fixnum)

    The line in the HIN data at which the error occurred.



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

def line
  @line
end