Package com.anthropic.models
Class ErrorObject
-
- All Implemented Interfaces:
public final class ErrorObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceErrorObject.VisitorAn interface that defines how to map each variant of ErrorObject to a value of type T.
-
Method Summary
-
-
Method Detail
-
invalidRequestError
final Optional<InvalidRequestError> invalidRequestError()
-
authenticationError
final Optional<AuthenticationError> authenticationError()
-
billingError
final Optional<BillingError> billingError()
-
permissionError
final Optional<PermissionError> permissionError()
-
notFoundError
final Optional<NotFoundError> notFoundError()
-
rateLimitError
final Optional<RateLimitError> rateLimitError()
-
gatewayTimeoutError
final Optional<GatewayTimeoutError> gatewayTimeoutError()
-
api
final Optional<ApiErrorObject> api()
-
overloadedError
final Optional<OverloadedError> overloadedError()
-
isInvalidRequestError
final Boolean isInvalidRequestError()
-
isAuthenticationError
final Boolean isAuthenticationError()
-
isBillingError
final Boolean isBillingError()
-
isPermissionError
final Boolean isPermissionError()
-
isNotFoundError
final Boolean isNotFoundError()
-
isRateLimitError
final Boolean isRateLimitError()
-
isGatewayTimeoutError
final Boolean isGatewayTimeoutError()
-
isOverloadedError
final Boolean isOverloadedError()
-
asInvalidRequestError
final InvalidRequestError asInvalidRequestError()
-
asAuthenticationError
final AuthenticationError asAuthenticationError()
-
asBillingError
final BillingError asBillingError()
-
asPermissionError
final PermissionError asPermissionError()
-
asNotFoundError
final NotFoundError asNotFoundError()
-
asRateLimitError
final RateLimitError asRateLimitError()
-
asGatewayTimeoutError
final GatewayTimeoutError asGatewayTimeoutError()
-
asApi
final ApiErrorObject asApi()
-
asOverloadedError
final OverloadedError asOverloadedError()
-
accept
final <T extends Any> T accept(ErrorObject.Visitor<T> visitor)
-
validate
final ErrorObject validate()
-
ofInvalidRequestError
final static ErrorObject ofInvalidRequestError(InvalidRequestError invalidRequestError)
-
ofAuthenticationError
final static ErrorObject ofAuthenticationError(AuthenticationError authenticationError)
-
ofBillingError
final static ErrorObject ofBillingError(BillingError billingError)
-
ofPermissionError
final static ErrorObject ofPermissionError(PermissionError permissionError)
-
ofNotFoundError
final static ErrorObject ofNotFoundError(NotFoundError notFoundError)
-
ofRateLimitError
final static ErrorObject ofRateLimitError(RateLimitError rateLimitError)
-
ofGatewayTimeoutError
final static ErrorObject ofGatewayTimeoutError(GatewayTimeoutError gatewayTimeoutError)
-
ofApi
final static ErrorObject ofApi(ApiErrorObject api)
-
ofOverloadedError
final static ErrorObject ofOverloadedError(OverloadedError overloadedError)
-
-
-
-