Package com.anthropic.models.beta
Class BetaErrorResponse
-
- All Implemented Interfaces:
public final class BetaErrorResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaErrorResponse.BuilderA builder for BetaErrorResponse.
-
Method Summary
Modifier and Type Method Description final BetaErrorerror()final Optional<String>requestId()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("error")final JsonField<BetaError>_error()Returns the raw JSON value of error. final JsonField<String>_requestId()Returns the raw JSON value of requestId. final Map<String, JsonValue>_additionalProperties()final BetaErrorResponse.BuildertoBuilder()final BetaErrorResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaErrorResponse.Builderbuilder()Returns a mutable builder for constructing an instance of BetaErrorResponse. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("error")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_error
final JsonField<BetaError> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_requestId
final JsonField<String> _requestId()
Returns the raw JSON value of requestId.
Unlike requestId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaErrorResponse.Builder toBuilder()
-
validate
final BetaErrorResponse 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 BetaErrorResponse.Builder builder()
Returns a mutable builder for constructing an instance of BetaErrorResponse.
The following fields are required:
.error() .requestId()
-
-
-
-