WordPress\AiClient\Common\Exception

TokenLimitReachedException::getMaxTokenspublicWP 1.0.0

Returns the token limit that was reached, if known.

Method of the class: TokenLimitReachedException{}

No Hooks.

Returns

Int|null. The token limit, or null if not provided.

Usage

$TokenLimitReachedException = new TokenLimitReachedException();
$TokenLimitReachedException->getMaxTokens(): ?int;

Changelog

Since 1.0.0 Introduced.

TokenLimitReachedException::getMaxTokens() code WP 7.0

public function getMaxTokens(): ?int
{
    return $this->maxTokens;
}