Package com.openai.models.responses
Class ResponseError
-
- All Implemented Interfaces:
public final class ResponseErrorAn error object returned when the model fails to generate a Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseError.BuilderA builder for ResponseError.
public final classResponseError.CodeThe error code for the response.
-
Method Summary
Modifier and Type Method Description final ResponseError.Codecode()The error code for the response. final Stringmessage()A human-readable description of the error. final JsonField<ResponseError.Code>_code()Returns the raw JSON value of code. final JsonField<String>_message()Returns the raw JSON value of message. final Map<String, JsonValue>_additionalProperties()final ResponseError.BuildertoBuilder()final ResponseErrorvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseError.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseError. -
-
Method Detail
-
code
final ResponseError.Code code()
The error code for the response.
-
_code
final JsonField<ResponseError.Code> _code()
Returns the raw JSON value of code.
Unlike code, this method doesn't throw if the JSON field has an unexpected type.
-
_message
final JsonField<String> _message()
Returns the raw JSON value of message.
Unlike message, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseError.Builder toBuilder()
-
validate
final ResponseError validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseError.Builder builder()
Returns a mutable builder for constructing an instance of ResponseError.
The following fields are required:
.code() .message()
-
-
-
-