class CSV::InvalidEncodingError - csv: Ruby Standard Library Documentation

# class CSV::InvalidEncodingError

The error thrown when the parser encounters invalid encoding in `CSV`.

### Attributes

encoding[R]

### Public Class Methods

new(encoding, line_number) click to toggle source
Calls superclass method `CSV::MalformedCSVError::new`

    # File csv-3.3.2/lib/csv.rb, line 864
    def initialize(encoding, line_number)
      @encoding = encoding
      super("Invalid byte sequence in #{encoding}", line_number)
    end