Exception: Berkshelf::BerksfileReadError
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::BerksfileReadError
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(original_error) ⇒ BerksfileReadError
constructor
A new instance of BerksfileReadError.
- #status_code ⇒ Object
Methods inherited from BerkshelfError
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_code ⇒ Object
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 |