Exception: Berkshelf::LockfileParserError

Inherits:
BerkshelfError show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_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



409
410
411
# File 'lib/berkshelf/errors.rb', line 409

def initialize(original)
  @original = original
end

Instance Method Details

#to_sObject Also known as: message



413
414
415
416
# File 'lib/berkshelf/errors.rb', line 413

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