Exception: CsvParser::Error

Inherits:
Exception
  • Object
show all
Defined in:
lib/csv_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, line, column) ⇒ Error

Returns a new instance of Error.



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

def initialize(msg, line, column)
  super(msg)
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



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

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end