Interface BetaDreamingError.Visitor
-
- All Implemented Interfaces:
public interface BetaDreamingError.Visitor<T extends Object>An interface that defines how to map each variant of BetaDreamingError to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitInvalidRequest(BetaInvalidRequestError invalidRequest)abstract TvisitAuthentication(BetaAuthenticationError authentication)abstract TvisitBilling(BetaBillingError billing)abstract TvisitPermission(BetaPermissionError permission)abstract TvisitNotFound(BetaNotFoundError notFound)abstract TvisitRateLimit(BetaRateLimitError rateLimit)abstract TvisitTimeout(BetaGatewayTimeoutError timeout)abstract TvisitApi(BetaApiError api)abstract TvisitOverloaded(BetaOverloadedError overloaded)abstract TvisitConflict(BetaTargetStoreHeldError conflict)Returned with status 409 when a request to create a dream sets output_behaviortoupdate_existingand another dream that writes into the same memory store hasn't fully stopped.Tunknown(JsonValue json)Maps an unknown variant of BetaDreamingError to a value of type T. -
-
Method Detail
-
visitInvalidRequest
abstract T visitInvalidRequest(BetaInvalidRequestError invalidRequest)
-
visitAuthentication
abstract T visitAuthentication(BetaAuthenticationError authentication)
-
visitBilling
abstract T visitBilling(BetaBillingError billing)
-
visitPermission
abstract T visitPermission(BetaPermissionError permission)
-
visitNotFound
abstract T visitNotFound(BetaNotFoundError notFound)
-
visitRateLimit
abstract T visitRateLimit(BetaRateLimitError rateLimit)
-
visitTimeout
abstract T visitTimeout(BetaGatewayTimeoutError timeout)
-
visitApi
abstract T visitApi(BetaApiError api)
-
visitOverloaded
abstract T visitOverloaded(BetaOverloadedError overloaded)
-
visitConflict
abstract T visitConflict(BetaTargetStoreHeldError conflict)
Returned with status 409 when a request to create a dream sets
output_behaviortoupdate_existingand another dream that writes into the same memory store hasn't fully stopped.The other dream is
pendingorrunning, or it has just stopped and is still finishing its last writes.messagegives the ID of the other dream when the server can identify it. If that dream has already reachedcompleted,failed, orcanceled, retry after a short wait. Otherwise, wait for the other dream to end or cancel it, then retry. The response sets thex-should-retryheader tofalse.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaDreamingError to a value of type T.
An instance of BetaDreamingError can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-