class

AI::Provider::LoadAPIKeyError

Inherits AI::Provider::AISDKError < Exception < Reference < Object

Error thrown when an API key cannot be loaded.

This error is typically raised when the SDK cannot find or read the API key from environment variables or configuration.

Constructors

new(*, message : String)

Creates a new LoadAPIKeyError.

Parameters:

  • message: The error message describing what went wrong
Source

Class methods

instance?(error) : Bool

Checks if the given value is an instance of LoadAPIKeyError.

Source