123456789_123456789_123456789_123456789_123456789_

Exception: Parser::UnknownEncodingInMagicComment

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ArgumentError
Instance Chain:
self, ArgumentError
Inherits: ArgumentError
  • Object
Defined in: lib/rubocop/ast/vendor/parser/unknown_encoding_in_magic_comment_error.rb

Overview

UnknownEncodingInMagicComment is raised when a magic encoding comment is encountered that the currently running Ruby version doesn’t recognize. It inherits from ArgumentError since that is the exception Ruby itself raises when trying to execute a file with an unknown encoding. As such, it is also not a SyntaxError.