Class ErrorEvent
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ErrorEvent>
com.azure.ai.openai.assistants.models.ErrorEvent
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Terminal event indicating a server side error while streaming.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorEvent
Event sent when an error occurs, such as an internal server error or a timeout. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorEvent
fromString
(String name) Creates or finds a ErrorEvent from its string representation.static Collection
<ErrorEvent> values()
Gets known ErrorEvent values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ERROR
Event sent when an error occurs, such as an internal server error or a timeout.
-
-
Constructor Details
-
ErrorEvent
Deprecated.Use thefromString(String)
factory method.Creates a new instance of ErrorEvent value.
-
-
Method Details
-
fromString
Creates or finds a ErrorEvent from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding ErrorEvent.
-
values
Gets known ErrorEvent values.- Returns:
- known ErrorEvent values.
-
fromString(String)
factory method.