Exception: ECCSV::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, line = nil, col = nil) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
# File 'lib/eccsv/errors.rb', line 5

def initialize(msg = nil, line = nil, col = nil)
  super(msg)
  @line = line
  @col = col
end

Instance Attribute Details

#colObject (readonly)

Returns the value of attribute col.



3
4
5
# File 'lib/eccsv/errors.rb', line 3

def col
  @col
end

#lineObject (readonly)

Returns the value of attribute line.



3
4
5
# File 'lib/eccsv/errors.rb', line 3

def line
  @line
end