Expand description
Errors of the Cloud connector. Messages are safe to print: they never carry tokens, keys, device codes or request bodies.
Structs§
- Instance
Cap - An
instance_limitrefusal as far as it is shown. - Plan
Need - What a
402 plan_requiredsays, as far as it is shown. - Policy
Denial - 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).
- Storage
Full - A full LeanCTX Cloud storage (
storage_quota_exceeded), in bytes.
Enums§
- Cloud
Error - Next
Step - What helps with a limit refusal (
next_stepof the service). - Permit
Check - Which check refused a
not_permittedclaim (Cloud task #17). - Task
Refusal - Why Cloud refused a task request (the
reasonof C0 1.9 §1).
Constants§
- APP_
KEYS_ INVALID CloudError::Servercode (f3129): the Cloud refused the announcedapp_keysat the device code (400 invalid_field, fieldapp_keys).- APP_
KEY_ BIND_ INVALID CloudError::Servercode (f3129):app_keys_bind_signatureis missing or does not verify.- APP_
KEY_ NOT_ ANNOUNCED CloudError::Servercode (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 syncprints 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 aServererror.- OPTIN_
KEY_ BOUND CloudError::Servercode: another opt-in key is bound already.- OPTIN_
KEY_ CLEARED CloudError::Servercode: this opt-in key was removed on the web.- OPTIN_
KEY_ INVALID CloudError::Servercode: 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_san answer may ask for (32 days); a larger one (up tou64::MAX) is shortened to this before any time arithmetic. - TASK_
KEY_ BOUND CloudError::Servercode: another task-propose key is bound already.- TASK_
KEY_ CLEARED CloudError::Servercode: this task-propose key was removed on the web.- TASK_
KEY_ INVALID CloudError::Servercode: the Cloud refused the offered task-propose key.- TRIAL_
CODE_ EXPIRED - A
--trialdevice 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 asCloudError::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 (
reasontrial_ended/plan_ended). - quota_
label - A quota resource as people read it (
storage_bytesis “storage”).