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


371
372
373
# File 'lib/berkshelf/errors.rb', line 371

def initialize(original)
  @original = original
end

Instance Method Details

#to_sObject


375
376
377
378
# File 'lib/berkshelf/errors.rb', line 375

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