Exception: Fox::LockfileParserError

Inherits:
FoxError
  • Object
show all
Defined in:
lib/fox/error/errors.rb

Instance Method Summary collapse

Methods inherited from FoxError

status_code

Constructor Details

#initialize(original) ⇒ LockfileParserError

Returns a new instance of LockfileParserError.

Parameters:

  • lockfile (String)

    the path to the Lockfile

  • original (~Exception)

    the original exception class



186
187
188
# File 'lib/fox/error/errors.rb', line 186

def initialize(original)
  @original = original
end

Instance Method Details

#to_sObject



190
191
192
193
# File 'lib/fox/error/errors.rb', line 190

def to_s
  "Error reading the Fox lockfile:\n\n" \
  "  #{@original.class}: #{@original.message}"
end