Package com.openai.models.beta.responses
Class BetaResponseError
-
- All Implemented Interfaces:
public final class BetaResponseErrorAn error object returned when the model fails to generate a Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseError.BuilderA builder for BetaResponseError.
public final classBetaResponseError.CodeThe error code for the response.
-
Method Summary
Modifier and Type Method Description final BetaResponseError.Codecode()The error code for the response. final Stringmessage()A human-readable description of the error. final JsonField<BetaResponseError.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 BetaResponseError.BuildertoBuilder()final BetaResponseErrorvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseError.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseError. -
-
Method Detail
-
code
final BetaResponseError.Code code()
The error code for the response.
-
_code
final JsonField<BetaResponseError.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 BetaResponseError.Builder toBuilder()
-
validate
final BetaResponseError 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 BetaResponseError.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseError.
The following fields are required:
.code() .message()
-
-
-
-