1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Raise Fog::AWS::SES::InvalidParameterError for InvalidParameterValue.

This commit is contained in:
Postmodern 2013-07-03 20:07:08 -07:00
parent d8c3223e79
commit 80ae198e2b

View file

@ -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