Skip to main content

Module error

Module error 

Source
Expand description

Errors of the Cloud connector. Messages are safe to print: they never carry tokens, keys, device codes or request bodies.

Structs§

InstanceCap
An instance_limit refusal as far as it is shown.
PlanNeed
What a 402 plan_required says, as far as it is shown.
PolicyDenial
A server-enforced policy refusal (policy_denied, API §7.2).
Quota
A used-up quota as far as it is shown and acted on (API §8.1).
Revocation
What a revocation statement says, as far as it is shown (E12).
StorageFull
A full Cloud storage (storage_quota_exceeded), in bytes.

Enums§

CloudError
NextStep
What helps with a limit refusal (next_step of the service).
PermitCheck
Which check refused a not_permitted claim (Cloud task #17).
TaskRefusal
Why Cloud refused a task request (the reason of C0 1.9 §1).

Constants§

APP_KEYS_INVALID
CloudError::Server code (f3129): the Cloud refused the announced app_keys at the device code (400 invalid_field, field app_keys).
APP_KEY_BIND_INVALID
CloudError::Server code (f3129): app_keys_bind_signature is missing or does not verify.
APP_KEY_NOT_ANNOUNCED
CloudError::Server code (f3129): the offered app keys are not exactly the ones announced at the device code.
CODE_DENIED
A device code the person refused in the browser.
CODE_EXPIRED
A device code that ran out before anyone approved it.
FREE_CONNECTED
How a full connected-at-once count frees (rc4-58).
FREE_REGISTERED
How a full registered count frees (rc4-62): one revoked host frees its registration (in Personal after the cool-down or a recovery).
HOSTS_CONNECTED
The label of connected_instances: hosts connected now, against the plan’s limit of hosts connected at once (rc4-58).
HOSTS_REGISTERED
The label of registered_instances: hosts that connected at least once and are not revoked (the web’s “Registered”, rc4-58).
LOCKED_MARK
The part every locked-workspace line shares; cloud sync prints such a refusal once per run.
MONTHLY_RESOURCES
Monthly quotas reset at the start of the next calendar month (UTC).
NOT_READY
409 not_ready: Cloud cannot serve a signed answer yet (plans without a control key, contract §37.2). Kept as the code of a Server error.
OPTIN_KEY_BOUND
CloudError::Server code: another opt-in key is bound already.
OPTIN_KEY_CLEARED
CloudError::Server code: this opt-in key was removed on the web.
OPTIN_KEY_INVALID
CloudError::Server code: the Cloud refused the offered opt-in key.
PLAN_LIMITS
The 1.x engine-seat text: the limits worded as everywhere (E10; plan limits of 17.11.: an Enterprise seat gets what a Team seat gets), in the two host counts of the web (rc4-58): registered and connected at once.
RECOVER_HINT
Where a person frees or recovers an engine slot (P7): the recovery route (POST /api/v1/orgs/{o}/instances/{id}/recover, owner with a second factor) is on the web only.
RETRY_AFTER_CAP_S
The longest retry_after_s an answer may ask for (32 days); a larger one (up to u64::MAX) is shortened to this before any time arithmetic.
TASK_KEY_BOUND
CloudError::Server code: another task-propose key is bound already.
TASK_KEY_CLEARED
CloudError::Server code: this task-propose key was removed on the web.
TASK_KEY_INVALID
CloudError::Server code: the Cloud refused the offered task-propose key.
TRIAL_CODE_EXPIRED
A --trial device code that ran out (CloudError::for_trial).
TRIAL_USED
The code of a one-step trial refusal (402 trial_used).
VAULT_CREATE_FORBIDDEN
403 vault_create_forbidden: the caller’s role may not add a new vault to the team (rc4-71); read as CloudError::Forbidden.

Functions§

amount_text
A quota amount in its resource’s unit: GiB for bytes, $ for model credit, a count otherwise.
locked_line
The one line of a locked workspace (reason trial_ended/plan_ended).
quota_label
A quota resource as people read it (storage_bytes is “storage”).