123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Gem::Exception, 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

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.

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