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§
- CODE_
DENIED - A device code the person refused in the browser.
- CODE_
EXPIRED - A device code that ran out before anyone approved it.
- 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.- 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).
- 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. - 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).
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”).