AITokenOverflowError class

Token limit exceeded — input or output too long.

Inheritance

Constructors

AITokenOverflowError({required String provider, String message = 'Token limit exceeded', int? maxTokens, int? requestedTokens, Object? originalError})

Properties

hashCode int
The hash code for this object.
no setterinherited
isRetryable bool
Whether this error is retryable.
no setteroverride
maxTokens int?
Maximum tokens allowed.
final
message String
Human-readable error message.
finalinherited
originalError Object?
Original error/exception from the provider (if available).
finalinherited
provider String
Which provider threw this error.
finalinherited
requestedTokens int?
Tokens that were requested/used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited