123456789_123456789_123456789_123456789_123456789_

Exception: Gem::RequestSet::Lockfile::ParseError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Gem::Exception, ::Gem::Deprecate, RuntimeError
Instance Chain:
self, ::Gem::Exception, RuntimeError
Inherits: Gem::Exception
  • Object
Defined in: lib/rubygems/request_set/lockfile.rb

Overview

Raised when a lockfile cannot be parsed

Class Method Summary

::Gem::Deprecate - Extended

deprecate

Simple deprecation method that deprecates name by wrapping it up in a dummy method.

skip_during

Temporarily turn off warnings.

Instance Attribute Summary

  • #column readonly

    The column where the error was encountered.

  • #line readonly

    The line where the error was encountered.

  • #path readonly

    The location of the lock file.

::Gem::Exception - Inherited

Constructor Details

.new(message, column, line, path) ⇒ ParseError

Raises a ParseError with the given message which was encountered at a #line and #column while parsing.

[ GitHub ]

  
# File 'lib/rubygems/request_set/lockfile.rb', line 32

def initialize(message, column, line, path)
  @line   = line
  @column = column
  @path   = path
  super "#{message} (at line #{line} column #{column})"
end

Instance Attribute Details

#column (readonly)

The column where the error was encountered

[ GitHub ]

  
# File 'lib/rubygems/request_set/lockfile.rb', line 16

attr_reader :column

#line (readonly)

The line where the error was encountered

[ GitHub ]

  
# File 'lib/rubygems/request_set/lockfile.rb', line 21

attr_reader :line

#path (readonly)

The location of the lock file

[ GitHub ]

  
# File 'lib/rubygems/request_set/lockfile.rb', line 26

attr_reader :path