W3cubDocs

/Ruby 3

class CSV::MalformedCSVError

Parent:
RuntimeError

The error thrown when the parser encounters illegal CSV formatting.

Attributes

line_number[R]
lineno[R]

Public Class Methods

new(message, line_number) Show source
# File lib/csv.rb, line 832
def initialize(message, line_number)
  @line_number = line_number
  super("#{message} in line #{line_number}.")
end
Calls superclass method Exception::new

Ruby Core © 1993–2020 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.