Exception: Berkshelf::LockfileParserError
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::LockfileParserError
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(lockfile, original) ⇒ LockfileParserError
constructor
A new instance of LockfileParserError.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(lockfile, original) ⇒ LockfileParserError
Returns a new instance of LockfileParserError.
403 404 405 406 |
# File 'lib/berkshelf/errors.rb', line 403 def initialize(lockfile, original) @lockfile = Pathname.new(lockfile.to_s).basename.to_s @original = original end |
Instance Method Details
#to_s ⇒ Object
408 409 410 |
# File 'lib/berkshelf/errors.rb', line 408 def to_s "Error reading the Berkshelf lockfile `#{@lockfile}` (#{@original.class})" end |