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



411
412
413
# File 'lib/berkshelf/errors.rb', line 411

def initialize(original)
  @original = original
end

Instance Method Details

#to_sObject Also known as: message



415
416
417
418
# File 'lib/berkshelf/errors.rb', line 415

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