ResponseError class

Error information returned when the model fails to generate a response.

Constructors

ResponseError.new({required String? code, required String message, String? param})
const
ResponseError.fromJson(Map<String, dynamic> json)
JSON-deserialization helper.
factory

Properties

code String?
A short machine-readable code, e.g. "rate_limit_exceeded".
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable explanation of the failure.
final
param String?
Optional parameter name that caused the error, if applicable.
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
toJson() Map<String, dynamic>
JSON-serialization helper.
toString() String
A string representation of this object.
override

Operators

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