Exception: Berkshelf::CommunitySiteError

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

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(uri, message) ⇒ CommunitySiteError

Returns a new instance of CommunitySiteError.



224
225
226
227
# File 'lib/berkshelf/errors.rb', line 224

def initialize(uri, message)
  @uri     = uri
  @message = message
end

Instance Method Details

#to_sObject Also known as: message



229
230
231
232
# File 'lib/berkshelf/errors.rb', line 229

def to_s
  "An unexpected error occurred retrieving #{@message} from the cookbook " \
  "site at '#{@api_uri}'."
end