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.



81
82
83
84
# File 'lib/mailgun/exceptions/exceptions.rb', line 81

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