Exception: Enconvert::AuthenticationError

Inherits:
APIError
  • Object
show all
Defined in:
lib/enconvert/errors.rb

Overview

HTTP 401 or 403 — invalid or missing API key.

Instance Attribute Summary

Attributes inherited from APIError

#status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AuthenticationError.



22
23
24
# File 'lib/enconvert/errors.rb', line 22

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