Record Class Events.ErrorEvent
java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Events.ErrorEvent
- Record Components:
eventType- The type of event ("error").eventId- The unique identifier for the event.error- The error details.
- All Implemented Interfaces:
Events
- Enclosing interface:
Events
public static record Events.ErrorEvent(Events.EventType eventType, String eventId, Events.Error error)
extends Record
implements Events
Event indicating an error.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.glaforge.gemini.interactions.model.Events
Events.AudioDelta, Events.CodeExecutionCallDelta, Events.CodeExecutionResultDelta, Events.ContentDelta, Events.ContentStart, Events.ContentStop, Events.Delta, Events.DeltaType, Events.DocumentDelta, Events.Error, Events.ErrorEvent, Events.EventType, Events.FileSearchResultDelta, Events.FunctionCallDelta, Events.FunctionResultDelta, Events.GoogleSearchCallDelta, Events.GoogleSearchResultDelta, Events.ImageDelta, Events.InteractionEvent, Events.InteractionStatusUpdate, Events.McpServerToolCallDelta, Events.McpServerToolResultDelta, Events.TextDelta, Events.ThoughtSignatureDelta, Events.ThoughtSummaryDelta, Events.UrlContextCallDelta, Events.UrlContextResultDelta, Events.VideoDelta -
Constructor Summary
ConstructorsConstructorDescriptionErrorEvent(Events.EventType eventType, String eventId, Events.Error error) Creates an instance of aErrorEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.eventId()Returns the value of theeventIdrecord component.Returns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
eventType
Returns the value of theeventTyperecord component. -
eventId
Returns the value of theeventIdrecord component. -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-