Exception: Sendly::AuthenticationError
- Defined in:
- lib/sendly/errors.rb
Overview
Raised when the API key is invalid or missing
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Invalid or missing API key") ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
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( = "Invalid or missing API key") super(, code: "AUTHENTICATION_ERROR", status_code: 401) end |