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:
parent
d8c3223e79
commit
80ae198e2b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue