Package com.chatmotorapi.api
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 Summary
Modifier and Type Method Description String
getMessage()
Returns the message associated with the error.OpenAiErrorType
getType()
Returns the type of the error.String
toString()
Returns a string representation of the OpenAiError.
-
Method Details
-
getType
Returns the type of the error.- Returns:
- the error type
-
getMessage
Returns the message associated with the error.- Returns:
- the error message
-
toString
Returns a string representation of the OpenAiError. This includes the error type and message in a single string.
-