Exception: Sendly::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/sendly/errors.rb

Overview

Raised when the API key is invalid or missing

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Invalid or missing API key") ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



25
26
27
# File 'lib/sendly/errors.rb', line 25

def initialize(message = "Invalid or missing API key")
  super(message, code: "AUTHENTICATION_ERROR", status_code: 401)
end