Class OpenAiError

java.lang.Object
com.chatmotorapi.api.OpenAiError

public class OpenAiError
extends Object
Represents an error encountered within the OpenAI operations. This class holds details about the error including its type and a message describing the error.
  • Method Details

    • getType

      public OpenAiErrorType getType()
      Returns the type of the error.
      Returns:
      the error type
    • getMessage

      public String getMessage()
      Returns the message associated with the error.
      Returns:
      the error message
    • toString

      public String toString()
      Returns a string representation of the OpenAiError. This includes the error type and message in a single string.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the error, never null