Package com.anthropic.models
Class BetaError
-
- All Implemented Interfaces:
public final class BetaError
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaError.VisitorAn interface that defines how to map each variant of BetaError to a value of type T.
-
Method Summary
-
-
Method Detail
-
invalidRequest
final Optional<BetaInvalidRequestError> invalidRequest()
-
authentication
final Optional<BetaAuthenticationError> authentication()
-
billing
final Optional<BetaBillingError> billing()
-
permission
final Optional<BetaPermissionError> permission()
-
notFound
final Optional<BetaNotFoundError> notFound()
-
rateLimit
final Optional<BetaRateLimitError> rateLimit()
-
gatewayTimeout
final Optional<BetaGatewayTimeoutError> gatewayTimeout()
-
api
final Optional<BetaApiError> api()
-
overloaded
final Optional<BetaOverloadedError> overloaded()
-
isInvalidRequest
final Boolean isInvalidRequest()
-
isAuthentication
final Boolean isAuthentication()
-
isPermission
final Boolean isPermission()
-
isNotFound
final Boolean isNotFound()
-
isRateLimit
final Boolean isRateLimit()
-
isGatewayTimeout
final Boolean isGatewayTimeout()
-
isOverloaded
final Boolean isOverloaded()
-
asInvalidRequest
final BetaInvalidRequestError asInvalidRequest()
-
asAuthentication
final BetaAuthenticationError asAuthentication()
-
asBilling
final BetaBillingError asBilling()
-
asPermission
final BetaPermissionError asPermission()
-
asNotFound
final BetaNotFoundError asNotFound()
-
asRateLimit
final BetaRateLimitError asRateLimit()
-
asGatewayTimeout
final BetaGatewayTimeoutError asGatewayTimeout()
-
asApi
final BetaApiError asApi()
-
asOverloaded
final BetaOverloadedError asOverloaded()
-
accept
final <T extends Any> T accept(BetaError.Visitor<T> visitor)
-
ofInvalidRequest
final static BetaError ofInvalidRequest(BetaInvalidRequestError invalidRequest)
-
ofAuthentication
final static BetaError ofAuthentication(BetaAuthenticationError authentication)
-
ofBilling
final static BetaError ofBilling(BetaBillingError billing)
-
ofPermission
final static BetaError ofPermission(BetaPermissionError permission)
-
ofNotFound
final static BetaError ofNotFound(BetaNotFoundError notFound)
-
ofRateLimit
final static BetaError ofRateLimit(BetaRateLimitError rateLimit)
-
ofGatewayTimeout
final static BetaError ofGatewayTimeout(BetaGatewayTimeoutError gatewayTimeout)
-
ofApi
final static BetaError ofApi(BetaApiError api)
-
ofOverloaded
final static BetaError ofOverloaded(BetaOverloadedError overloaded)
-
-
-
-