Module mz_compute_client::controller::error

source ·
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§

  • Error returned in response to a reference to an unknown compute collection.
  • Error returned in response to a request to create a compute instance with an ID of an existing compute instance.
  • Error returned in response to a reference to an unknown compute instance.

Enums§