lib/ridley/errors.rb in ridley-0.7.0.rc1 vs lib/ridley/errors.rb in ridley-0.7.0.rc3
- old
+ new
@@ -3,10 +3,11 @@
module Errors
class RidleyError < StandardError; end
class InternalError < RidleyError; end
class ArgumentError < InternalError; end
+ class ResourceNotFound < RidleyError; end
class ValidatorNotFound < RidleyError; end
class InvalidResource < RidleyError
attr_reader :errors
@@ -16,9 +17,21 @@
def message
errors.values
end
alias_method :to_s, :message
+ end
+
+ class UnknownCookbookFileType < RidleyError
+ attr_reader :type
+
+ def initialize(type)
+ @type = type
+ end
+
+ def to_s
+ "filetype: '#{type}'"
+ end
end
class BootstrapError < RidleyError; end
class ClientKeyFileNotFound < BootstrapError; end
class EncryptedDataBagSecretNotFound < BootstrapError; end