AiAuthException class final Errors

Raised when the provider rejects the credentials (HTTP 401 or 403).

Inheritance

Constructors

AiAuthException(String message, {required String provider, int? statusCode, Object? cause})
Creates an AiAuthException.

Properties

cause Object?
The underlying error or exception, when this wraps another failure.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of what went wrong.
finalinherited
provider String
The provider id that produced this error (for example openai).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The HTTP status code, when the failure originated from a response.
finalinherited

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