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 lib/csv.rb, line 864
def initialize(encoding, line_number)
  @encoding = encoding
  super("Invalid byte sequence in #{encoding}", line_number)
end