From 80ae198e2be9e326674888ee35e8c94739ca78ec Mon Sep 17 00:00:00 2001 From: Postmodern Date: Wed, 3 Jul 2013 20:07:08 -0700 Subject: [PATCH] Raise Fog::AWS::SES::InvalidParameterError for InvalidParameterValue. --- lib/fog/aws/ses.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fog/aws/ses.rb b/lib/fog/aws/ses.rb index 96c12a7ee..0f9a489cb 100644 --- a/lib/fog/aws/ses.rb +++ b/lib/fog/aws/ses.rb @@ -5,6 +5,7 @@ module Fog class SES < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods + class InvalidParameterError < Fog::Errors::Error; end class MessageRejected < Fog::Errors::Error; end requires :aws_access_key_id, :aws_secret_access_key @@ -121,6 +122,8 @@ module Fog raise case match[:code] when 'MessageRejected' Fog::AWS::SES::MessageRejected.slurp(error, match[:message]) + when 'InvalidParameterValue' + Fog::AWS::SES::InvalidParameterError.slurp(error, match[:message]) else Fog::AWS::SES::Error.slurp(error, "#{match[:code]} => #{match[:message]}") end