lib/ridley/errors.rb in ridley-0.3.2 vs lib/ridley/errors.rb in ridley-0.4.0

- old
+ new

@@ -1,11 +1,14 @@ module Ridley # @author Jamie Winsor <jamie@vialstudios.com> module Errors class RidleyError < StandardError; end class InternalError < RidleyError; end + class ArgumentError < InternalError; end + class ValidatorNotFound < RidleyError; end + class InvalidResource < RidleyError attr_reader :errors def initialize(errors) @errors = errors @@ -15,10 +18,12 @@ errors.full_messages.join(', ') end alias_method :to_s, :message end - class ClientKeyFileNotFound < RidleyError; end + class BootstrapError < RidleyError; end + class ClientKeyFileNotFound < BootstrapError; end + class EncryptedDataBagSecretNotFound < BootstrapError; end class HTTPError < RidleyError class << self def fabricate(env) klass = lookup_error(env[:status].to_i)