Exception: Aigen::Google::AuthenticationError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/aigen/google/errors.rb

Overview

Authentication errors (401, 403)

Instance Attribute Summary

Attributes inherited from ApiError

#status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Invalid API key. Get one at https://makersuite.google.com/app/apikey", status_code: 401) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



23
24
25
# File 'lib/aigen/google/errors.rb', line 23

def initialize(message = "Invalid API key. Get one at https://makersuite.google.com/app/apikey", status_code: 401)
  super
end