Exception: CSV::MalformedCSVError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- CSV::MalformedCSVError
- Defined in:
- lib/csv.rb
Overview
The error thrown when the parser encounters illegal CSV formatting.
Instance Attribute Summary collapse
-
#line_number ⇒ Object
(also: #lineno)
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
-
#initialize(message, line_number) ⇒ MalformedCSVError
constructor
A new instance of MalformedCSVError.
Constructor Details
#initialize(message, line_number) ⇒ MalformedCSVError
Returns a new instance of MalformedCSVError.
832 833 834 835 |
# File 'lib/csv.rb', line 832 def initialize(, line_number) @line_number = line_number super("#{} in line #{line_number}.") end |
Instance Attribute Details
#line_number ⇒ Object (readonly) Also known as: lineno
Returns the value of attribute line_number.
830 831 832 |
# File 'lib/csv.rb', line 830 def line_number @line_number end |