WordPress\AiClient\Common\Exception

TokenLimitReachedException::__constructpublicWP 1.0.0

Creates a new TokenLimitReachedException.

Method of the class: TokenLimitReachedException{}

No Hooks.

Returns

null. Nothing (null).

Usage

$TokenLimitReachedException = new TokenLimitReachedException();
$TokenLimitReachedException->__construct( $message, ?int $maxTokens, ?\Throwable $previous );
$message(string)
The exception message.
Default: ''
?int $maxTokens
.
Default: null
?\Throwable $previous
.
Default: null

Changelog

Since 1.0.0 Introduced.

TokenLimitReachedException::__construct() code WP 7.0

public function __construct(string $message = '', ?int $maxTokens = null, ?\Throwable $previous = null)
{
    parent::__construct($message, 0, $previous);
    $this->maxTokens = $maxTokens;
}