Exception: Berkshelf::CommunitySiteError
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::CommunitySiteError
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(uri, message) ⇒ CommunitySiteError
constructor
A new instance of CommunitySiteError.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(uri, message) ⇒ CommunitySiteError
Returns a new instance of CommunitySiteError.
225 226 227 228 |
# File 'lib/berkshelf/errors.rb', line 225 def initialize(uri, ) @api_uri = uri @message = end |
Instance Method Details
#to_s ⇒ Object Also known as: message
230 231 232 233 |
# File 'lib/berkshelf/errors.rb', line 230 def to_s "An unexpected error occurred retrieving #{@message} from the cookbook " \ "site at '#{@api_uri}'." end |