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>

public final class ErrorEvent extends com.azure.core.util.ExpandableStringEnum<ErrorEvent>
Terminal event indicating a server side error while streaming.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ErrorEvent
    Event sent when an error occurs, such as an internal server error or a timeout.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static ErrorEvent
    Creates or finds a ErrorEvent from its string representation.
    Gets known ErrorEvent values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ERROR

      public static final ErrorEvent ERROR
      Event sent when an error occurs, such as an internal server error or a timeout.
  • Constructor Details

  • Method Details

    • fromString

      public static ErrorEvent fromString(String name)
      Creates or finds a ErrorEvent from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ErrorEvent.
    • values

      public static Collection<ErrorEvent> values()
      Gets known ErrorEvent values.
      Returns:
      known ErrorEvent values.