pub enum DeployError {
Storage(StorageError),
Kv(KvError),
Serde(String),
NotFound(String),
HashMismatch {
expected: String,
actual: String,
},
Incomplete(Vec<String>),
Ambiguous(String),
Conflict(String),
Invalid(String),
}Expand description
Errors from the content-addressed deploy layer (crate::deploy).
Variants§
Storage(StorageError)
A blob-storage error.
Kv(KvError)
A KV (manifest/pointer) error.
Serde(String)
(De)serialization of a manifest failed.
NotFound(String)
A referenced deployment, site, or path was not found.
HashMismatch
An uploaded blob did not hash to the key it was stored under.
Fields
Incomplete(Vec<String>)
A deployment cannot be activated because some blobs are missing.
Ambiguous(String)
A deployment-id prefix matched more than one deployment.
Conflict(String)
A host is already claimed by a different site — refusing to overwrite the
routing index would let one site hijack another’s domain. Surfaced as a
409 Conflict.
Invalid(String)
A submitted config failed a content-validation check before storage (e.g. a project
tenancy schema with an empty public predicate that would defeat the target-read
confinement). Surfaced as a 400 Bad Request — the write is refused, not stored.
Trait Implementations§
Source§impl Debug for DeployError
impl Debug for DeployError
Source§impl Display for DeployError
impl Display for DeployError
Source§impl Error for DeployError
impl Error for DeployError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()