123456789_123456789_123456789_123456789_123456789_

Exception: CSV::InvalidEncodingError

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

Overview

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

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(encoding, line_number) ⇒ InvalidEncodingError

[ GitHub ]

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

def initialize(encoding, line_number)
  @encoding = encoding
  super("Invalid byte sequence in #{encoding}", line_number)
end

Instance Attribute Details

#encoding (readonly)

[ GitHub ]

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

attr_reader :encoding