lib/ridley/errors.rb in ridley-0.10.2 vs lib/ridley/errors.rb in ridley-0.11.0.rc1

- old
+ new

@@ -32,10 +32,15 @@ "filetype: '#{type}'" end end class CookbookSyntaxError < RidleyError; end + class EncryptedDataBagSecretNotSet < RidleyError + def message + "no encrypted data bag secret was set for this Ridley connection" + end + end class BootstrapError < RidleyError; end class ClientKeyFileNotFound < BootstrapError; end class EncryptedDataBagSecretNotFound < BootstrapError; end class HostConnectionError < BootstrapError; end @@ -52,10 +57,12 @@ @response = response end end class FrozenCookbook < RidleyError; end + class SandboxCommitError < RidleyError; end + class PermissionDenied < RidleyError; end class HTTPError < RidleyError class << self def fabricate(env) klass = lookup_error(env[:status].to_i) @@ -72,10 +79,10 @@ HTTPUnknownStatus end def error_map @@error_map ||= Hash.new - end + end end attr_reader :env attr_reader :errors