Exception: ECCSV::Error
- Inherits:
-
Exception
- Object
- Exception
- ECCSV::Error
- Defined in:
- lib/eccsv/errors.rb
Direct Known Subclasses
ExtraFieldsError, MissingFieldsError, StrayQuoteError, UnmatchedQuoteError
Instance Attribute Summary collapse
-
#col ⇒ Object
readonly
Returns the value of attribute col.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(msg = nil, line = nil, col = nil) ⇒ Error
constructor
A new instance of Error.
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
#col ⇒ Object (readonly)
Returns the value of attribute col.
3 4 5 |
# File 'lib/eccsv/errors.rb', line 3 def col @col end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/eccsv/errors.rb', line 3 def line @line end |