UnknownAPIException

class UnknownAPIException(val statusCode: Int, val error: OpenAIError, throwable: Throwable? = null) : OpenAIAPIException

Represents an exception thrown when an unknown error occurs while interacting with the OpenAI API. This exception is used when the specific type of error is not covered by the existing subclasses.

Constructors

Link copied to clipboard
constructor(statusCode: Int, error: OpenAIError, throwable: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

an instance of OpenAIError containing information about the error that occurred.

Link copied to clipboard
open val message: String?
Link copied to clipboard

the HTTP status code associated with the error.