Sha256: b35a7eb23f86478e8d1480728eb38b7138a00331e9741bc7f4fb37ea1a1f3d05

Contents?: true

Size: 443 Bytes

Versions: 6973

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

module Parser
  ##
  # {Parser::SyntaxError} is raised whenever parser detects a syntax error,
  # similar to the standard SyntaxError class.
  #
  # @api public
  #
  # @!attribute [r] diagnostic
  #  @return [Parser::Diagnostic]
  #
  class SyntaxError < StandardError
    attr_reader :diagnostic

    def initialize(diagnostic)
      @diagnostic = diagnostic
      super(diagnostic.message)
    end
  end
end

Version data entries

6,973 entries across 6,950 versions & 50 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb
parser-3.3.7.0 lib/parser/syntax_error.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/parser-3.1.2.0/lib/parser/syntax_error.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/parser-3.3.6.0/lib/parser/syntax_error.rb