Sha256: c0ba77d65be2d4db15faee0ad77fd55b06dac566dd5aea355f08a39ddbdd6671

Contents?: true

Size: 412 Bytes

Versions: 76

Compression:

Stored size: 412 Bytes

Contents

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

76 entries across 76 versions & 5 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.0/lib/parser/syntax_error.rb
parser-2.4.0.2 lib/parser/syntax_error.rb
parser-2.4.0.1 lib/parser/syntax_error.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/lib/parser/syntax_error.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/lib/parser/syntax_error.rb
parser-2.4.0.0 lib/parser/syntax_error.rb
parser-2.3.3.1 lib/parser/syntax_error.rb
parser-2.3.3.0 lib/parser/syntax_error.rb
parser-2.3.2.0 lib/parser/syntax_error.rb
parser-2.3.1.4 lib/parser/syntax_error.rb
parser-2.3.1.3 lib/parser/syntax_error.rb
erruby_parser-2.3.1.2 lib/parser/syntax_error.rb
parser-2.3.1.2 lib/parser/syntax_error.rb
parser-2.3.1.1 lib/parser/syntax_error.rb