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.



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

def initialize(original_error)
  @original_error = original_error
end

Instance Method Details

#status_codeObject



122
123
124
# File 'lib/berkshelf/errors.rb', line 122

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