#[non_exhaustive]pub enum ErrorDetail {
ProjectBusy(ProjectBusy),
ProjectChanged(ProjectChanged),
MachineUnreachable(MachineUnreachable),
MachineUpdatePending(MachineUpdatePending),
NoMachine(NoMachine),
}Expand description
What the API attaches to an Error to branch on, beyond its code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProjectBusy(ProjectBusy)
Detail of an ErrorCode::Unavailable error: an operation, or a short action, holds the project. The message says the same in words.
ProjectChanged(ProjectChanged)
Detail of an ErrorCode::Aborted error: base_deploy_id is not the current deploy: the project was deployed since you read it. Read it again (Project::deploy_id) and redo your change on its files.
MachineUnreachable(MachineUnreachable)
Detail of an ErrorCode::Unavailable error: the machine does not answer now, as while it restarts. Call again later.
MachineUpdatePending(MachineUpdatePending)
Detail of a ErrorCode::FailedPrecondition error: the machine’s software predates what was asked. It comes with the machine’s next update, which Pethost runs; nothing for the caller to do.
NoMachine(NoMachine)
Detail of a ErrorCode::FailedPrecondition error: the account has no machine to run projects on yet.