Package com.anthropic.models
See: Description
-
Class Summary Class Description Builder A builder for ApiErrorObject. ApiErrorObject Builder A builder for AuthenticationError. AuthenticationError Builder A builder for BillingError. BillingError Builder A builder for ClaudeCodeKeyCreatorNotMemberErrorDetails. ClaudeCodeKeyCreatorNotMemberErrorDetails The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace. Builder A builder for ClaudeCodeKeyCreatorNotMemberException. ClaudeCodeKeyCreatorNotMemberException The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace. Builder A builder for ClaudeCodeVersionTooOldErrorDetails. ClaudeCodeVersionTooOldErrorDetails The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. Builder A builder for ClaudeCodeVersionTooOldException. ClaudeCodeVersionTooOldException The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. Builder A builder for CmekContextUnavailableErrorDetails. CmekContextUnavailableErrorDetails The workspace's encryption settings could not be read, so the request was refused. Builder A builder for CmekContextUnavailableException. CmekContextUnavailableException The workspace's encryption settings could not be read, so the request was refused. Builder A builder for CmekKeyDisabledErrorDetails. CmekKeyDisabledErrorDetails The workspace's customer-managed encryption key is disabled or revoked. Builder A builder for CmekKeyDisabledException. CmekKeyDisabledException The workspace's customer-managed encryption key is disabled or revoked. Builder A builder for CmekKeyNetworkBlockedErrorDetails. CmekKeyNetworkBlockedErrorDetails The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. Builder A builder for CmekKeyNetworkBlockedException. CmekKeyNetworkBlockedException The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. Builder A builder for CmekKeyUnreachableErrorDetails. CmekKeyUnreachableErrorDetails The workspace's customer-managed encryption key could not be reached. Builder A builder for CmekKeyUnreachableException. CmekKeyUnreachableException The workspace's customer-managed encryption key could not be reached. Builder A builder for ContractSpendLimitReachedErrorDetails. ContractSpendLimitReachedErrorDetails The organization has reached the spend limit of its contract. Builder A builder for ContractSpendLimitReachedException. ContractSpendLimitReachedException The organization has reached the spend limit of its contract. Builder A builder for EnforcedSpendLimitReachedErrorDetails. EnforcedSpendLimitReachedErrorDetails The organization has crossed the monthly API usage threshold of its API tier. Builder A builder for EnforcedSpendLimitReachedException. EnforcedSpendLimitReachedException The organization has crossed the monthly API usage threshold of its API tier. ErrorCode ErrorDetails Type ErrorObject Builder A builder for ErrorResponse. ErrorResponse ErrorType Builder A builder for GatewayTimeoutError. GatewayTimeoutError Builder A builder for InvalidRequestError. InvalidRequestError Builder A builder for LinkedOrganizationBillingUnavailableErrorDetails. LinkedOrganizationBillingUnavailableErrorDetails Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. Builder A builder for LinkedOrganizationBillingUnavailableException. LinkedOrganizationBillingUnavailableException Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. Builder A builder for LinkedOrganizationSpendLimitReachedErrorDetails. LinkedOrganizationSpendLimitReachedErrorDetails The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. Builder A builder for LinkedOrganizationSpendLimitReachedException. LinkedOrganizationSpendLimitReachedException The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. Builder A builder for NotFoundError. NotFoundError Builder A builder for OrganizationOnHoldErrorDetails. OrganizationOnHoldErrorDetails Anthropic has disabled the organization for trust and safety reasons. Builder A builder for OrganizationOnHoldException. OrganizationOnHoldException Anthropic has disabled the organization for trust and safety reasons. Builder A builder for OrganizationTypeNotSupportedErrorDetails. OrganizationTypeNotSupportedErrorDetails The endpoint does not support the organization's type. Builder A builder for OrganizationTypeNotSupportedException. OrganizationTypeNotSupportedException The endpoint does not support the organization's type. Builder A builder for OverloadedError. OverloadedError Builder A builder for ParentOrganizationRequiredErrorDetails. ParentOrganizationRequiredErrorDetails The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none. Builder A builder for ParentOrganizationRequiredException. ParentOrganizationRequiredException The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none. Builder A builder for PermissionError. PermissionError Builder A builder for RampLimitExceededErrorDetails. RampLimitExceededErrorDetails The request would exceed a ramp limit, which caps how fast usage can grow. Builder A builder for RampLimitExceededException. RampLimitExceededException The request would exceed a ramp limit, which caps how fast usage can grow. Builder A builder for RateLimitError. RateLimitError Builder A builder for RequestBodyEncodingInvalidErrorDetails. RequestBodyEncodingInvalidErrorDetails The request body is not valid for its Content-Encoding.Builder A builder for RequestBodyEncodingInvalidException. RequestBodyEncodingInvalidException The request body is not valid for its Content-Encoding.Builder A builder for RequestBodyEncodingUnsupportedErrorDetails. RequestBodyEncodingUnsupportedErrorDetails The request's Content-Encodingis not supported.Builder A builder for RequestBodyEncodingUnsupportedException. RequestBodyEncodingUnsupportedException The request's Content-Encodingis not supported.Builder A builder for RequestBodyTooLargeAfterDecodingErrorDetails. RequestBodyTooLargeAfterDecodingErrorDetails The compressed request body exceeds the request size limit once decoded. Builder A builder for RequestBodyTooLargeAfterDecodingException. RequestBodyTooLargeAfterDecodingException The compressed request body exceeds the request size limit once decoded. Builder A builder for SandboxEgressRestrictedErrorDetails. SandboxEgressRestrictedErrorDetails The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Builder A builder for SandboxEgressRestrictedException. SandboxEgressRestrictedException The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. -
Interface Summary Interface Description Visitor An interface that defines how to map each variant of ErrorDetails to a value of type T. Visitor An interface that defines how to map each variant of ErrorObject to a value of type T. -
Enum Summary Enum Description Known An enum containing ErrorCode's known values. Value An enum containing ErrorCode's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing ErrorType's known values. Value An enum containing ErrorType's known values, as well as an _UNKNOWN member.