Class: CSV::MalformedCSVError (Ruby 2.7.2)
Description: Class : CSV::MalformedCSVError - Ruby 2.7.2

### Home Classes Methods

### In Files

- csv.rb

### Parent

RuntimeError

### Methods

- ::new

### Class/Module Index

Quicksearch

- CSV
- CSV::DeleteSuffix
- CSV::FieldsConverter
- CSV::MalformedCSVError
- CSV::MatchP
- CSV::Parser
- CSV::Parser::InputsScanner
- CSV::Parser::InvalidEncoding
- CSV::Parser::Scanner
- CSV::Parser::UnoptimizedStringIO
- CSV::Row
- CSV::Table
- CSV::Writer
- Object

No matching classes.

# CSV::MalformedCSVError

The error thrown when the parser encounters illegal CSV formatting.

### Attributes

line_number[R]
lineno[R]

### Public Class Methods

new(message, line_number) click to toggle source

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