AIProviderException class
Exception thrown when AI provider operations fail.
This exception is thrown when the AI provider API call fails due to authentication, rate limiting, or service unavailability.
- Inheritance
-
- Object
- AIWebScraperException
- AIProviderException
- Implementers
Constructors
- AIProviderException(String message, String provider, [int? statusCode, String? context])
-
Creates a new AI provider exception.
const
Properties
- context → String?
-
Optional additional context about the error.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The error message describing what went wrong.
finalinherited
- provider → String
-
The AI provider that caused the exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The HTTP status code from the AI provider, if available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited