Expand description
Errors returned by the compute controller.
The guiding principle for error handling in the compute controller is that each public method
should return an error type that defines exactly the error variants the method can return, and
no additional ones. This precludes the usage of a single ComputeControllerError
enum that
simply includes the union of all error variants the compute controller can ever return (and
possibly some internal ones that are never returned to external callers). Instead, compute
controller methods return bespoke error types that serve as documentation for the failure modes
of each method and make it easy for callers to ensure that all possible errors are handled.
Structs§
- Collection
Missing - Error returned in response to a reference to an unknown compute collection.
- Hydration
Check BadTarget - Error returned in response to a reference to an unknown compute collection.
- Instance
Exists - Error returned in response to a request to create a compute instance with an ID of an existing compute instance.
- Instance
Missing - Error returned in response to a reference to an unknown compute instance.
Enums§
- Collection
Lookup Error - Errors arising during compute collection lookup.
- Collection
Update Error - Errors arising during collection updates.
- Dataflow
Creation Error - Errors arising during dataflow creation.
- Peek
Error - Errors arising during peek processing.
- Read
Policy Error - Errors arising during collection read policy assignment.
- Remove
Orphans Error - Errors arising during orphan removal.
- Replica
Creation Error - Errors arising during compute replica creation.
- Replica
Drop Error - Errors arising during compute replica removal.
Constants§
- ERROR_
TARGET_ REPLICA_ FAILED - The error returned by replica-targeted peeks and subscribes when the target replica disconnects.