Exception: Mailgun::Unauthorized

Inherits:
CommunicationError show all
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

#status

Attributes inherited from Error

#object

Instance Method Summary collapse

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(error_message, response)
  error_message = error_message + ' - Invalid Domain or API key'
  super(error_message, response)
end