Exception: Mailgun::Unauthorized
- Inherits:
-
CommunicationError
- Object
- StandardError
- Error
- CommunicationError
- Mailgun::Unauthorized
- Defined in:
- lib/mailgun/exceptions/exceptions.rb
Overview
Public: Class for managing unauthorized 401 errors Inherits from Mailgun::CommunicationError
Constant Summary collapse
- CODE =
401
Constants inherited from CommunicationError
CommunicationError::FORBIDDEN, CommunicationError::NOCODE
Instance Attribute Summary
Attributes inherited from CommunicationError
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(error_message, response) ⇒ Unauthorized
constructor
A new instance of Unauthorized.
Constructor Details
#initialize(error_message, response) ⇒ Unauthorized
Returns a new instance of Unauthorized.
78 79 80 81 |
# File 'lib/mailgun/exceptions/exceptions.rb', line 78 def initialize(, response) = + ' - Invalid Domain or API key' super(, response) end |