Exception: Berkshelf::BerksfileReadError

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

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(original_error) ⇒ BerksfileReadError

Returns a new instance of BerksfileReadError.



109
110
111
# File 'lib/berkshelf/errors.rb', line 109

def initialize(original_error)
  @original_error = original_error
end

Instance Method Details

#status_codeObject



115
116
117
# File 'lib/berkshelf/errors.rb', line 115

def status_code
  @original_error.respond_to?(:status_code) ? @original_error.status_code : 113
end