Exception: Mailjet::Unauthorized

Inherits:
CommunicationError show all
Defined in:
lib/mailjet/exception/errors.rb

Constant Summary collapse

CODE =
401

Constants inherited from CommunicationError

CommunicationError::NOCODE

Instance Attribute Summary

Attributes inherited from CommunicationError

#code

Attributes inherited from Error

#object

Instance Method Summary collapse

Constructor Details

#initialize(error_message, response) ⇒ Unauthorized

Returns a new instance of Unauthorized.



85
86
87
88
# File 'lib/mailjet/exception/errors.rb', line 85

def initialize(error_message, response)
  error_message = error_message + ' - Invalid Domain or API key'
  super(error_message, response)
end