ErrorContent class

Represents error content in a chat response.

Inheritance

Constructors

ErrorContent(String message, {String? errorCode, String? details})
Creates a new ErrorContent with the given message.

Properties

additionalProperties ↔ AdditionalPropertiesDictionary?
Additional properties.
getter/setter pairinherited
annotations ↔ List<AIAnnotation>?
Annotations attached to this content by the provider, such as CitationAnnotations produced by grounding tools like web search.
getter/setter pairinherited
details → String?
Additional error details.
final
errorCode → String?
An optional error code.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
The error message.
final
rawRepresentation ↔ Object?
The underlying implementation-specific representation of this content.
getter/setter pairinherited
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