Exception: CsvParser::Error
- Inherits:
-
Exception
- Object
- Exception
- CsvParser::Error
- Defined in:
- lib/csv_parser.rb
Direct Known Subclasses
ExtraFieldsError, MissingFieldsError, MissingQuoteError, StrayQuoteError
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(msg, line, column) ⇒ Error
constructor
A new instance of Error.
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
#column ⇒ Object (readonly)
Returns the value of attribute column.
12 13 14 |
# File 'lib/csv_parser.rb', line 12 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
12 13 14 |
# File 'lib/csv_parser.rb', line 12 def line @line end |