Exception: Geminize::AuthenticationError

Inherits:
GeminizeError
  • Object
show all
Defined in:
lib/geminize/errors.rb

Overview

Error raised when there's an authentication issue

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil, http_status = 401) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



29
30
31
32
33
34
35
# File 'lib/geminize/errors.rb', line 29

def initialize(message = nil, code = nil, http_status = 401)
  super(
    message || "Authentication failed. Please check your API key.",
    code,
    http_status
  )
end