class BedrockException

Properties

static protected list<string> $insufficientCreditPatterns

Patterns that indicate an insufficient credits or quota error.

Methods

static AiException
toAiException(Throwable $e, string $provider, string $model)

Create a new AI exception from an AWS Bedrock exception.

static bool
isInsufficientCreditsError(Throwable $e)

Determine if the given exception indicates an insufficient credits or quota error.

Details

at line 41
static AiException toAiException(Throwable $e, string $provider, string $model)

Create a new AI exception from an AWS Bedrock exception.

Parameters

Throwable $e
string $provider
string $model

Return Value

AiException

Exceptions

CanceledException

at line 88
static protected bool isInsufficientCreditsError(Throwable $e)

Determine if the given exception indicates an insufficient credits or quota error.

Parameters

Throwable $e

Return Value

bool