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

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubygems/request_set/lockfile.rb

Overview

Raised when a lockfile cannot be parsed

Instance Attribute Summary collapse

Attributes inherited from Exception

#source_exception

Instance Method Summary collapse

Methods included from Deprecate

deprecate, skip, skip=, skip_during

Constructor Details

#initialize(message, column, line, path) ⇒ ParseError

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



33
34
35
36
37
38
# File 'lib/rubygems/request_set/lockfile.rb', line 33

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

Instance Attribute Details

#columnObject (readonly)

The column where the error was encountered



17
18
19
# File 'lib/rubygems/request_set/lockfile.rb', line 17

def column
  @column
end

#lineObject (readonly)

The line where the error was encountered



22
23
24
# File 'lib/rubygems/request_set/lockfile.rb', line 22

def line
  @line
end

#pathObject (readonly)

The location of the lock file



27
28
29
# File 'lib/rubygems/request_set/lockfile.rb', line 27

def path
  @path
end