File: unknown_encoding_in_magic_comment_error.rb

package info (click to toggle)
ruby-whitequark-parser 3.3.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,828 kB
  • sloc: yacc: 40,699; ruby: 20,395; makefile: 12; sh: 8
file content (15 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Parser
  ##
  # {Parser::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 {Parser::SyntaxError}.
  #
  # @api public
  #
  class UnknownEncodingInMagicComment < ArgumentError
  end
end