ParseException class
Exception thrown when response parsing fails.
This indicates the API returned a response that couldn't be parsed as expected. This might indicate an API change or bug.
- Inheritance
-
- Object
- OpenAIException
- ParseException
- Annotations
-
- @immutable
Constructors
- ParseException({required String message, String? responseBody, Object? cause})
-
Creates a new ParseException.
const
Properties
- cause → Object?
-
The underlying cause of this exception, if any.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable description of the error.
finalinherited
- responseBody → String?
-
The raw response body that failed to parse.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited