123456789_123456789_123456789_123456789_123456789_

Exception: CSV::MalformedCSVError

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, RuntimeError
Instance Chain:
self, RuntimeError
Inherits: RuntimeError
  • Object
Defined in: lib/csv.rb

Overview

The error thrown when the parser encounters illegal ::CSV formatting.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(message, line_number) ⇒ MalformedCSVError

[ GitHub ]

  
# File 'lib/csv.rb', line 843

def initialize(message, line_number)
  @line_number = line_number
  super("#{message} in line #{line_number}.")
end

Instance Attribute Details

#line_number (readonly) Also known as: #lineno

[ GitHub ]

  
# File 'lib/csv.rb', line 841

attr_reader :line_number

#lineno (readonly)

Alias for #line_number.

[ GitHub ]

  
# File 'lib/csv.rb', line 842

alias_method :lineno, :line_number