pub enum StoreError {
Show 15 variants
RunNotFound(Uuid),
StepNotFound(Uuid),
InvalidTransition {
from: RunStatus,
to: RunStatus,
},
DuplicateEmail(String),
DuplicateUsername(String),
UserNotFound(Uuid),
LeaseLost {
run_id: Uuid,
held_by: Option<String>,
},
DuplicateArtifact {
step_id: Uuid,
name: String,
},
ScheduleNotFound(Uuid),
DelegationNotFound(Uuid),
ProviderAccountNotFound(Uuid),
DuplicateProviderAccount(String),
Database(String),
Serialization(Error),
Crypto(String),
}Expand description
Variants§
RunNotFound(Uuid)
The requested run does not exist.
StepNotFound(Uuid)
The requested step does not exist.
InvalidTransition
Attempted an illegal FSM transition.
DuplicateEmail(String)
Email is already taken by another user.
DuplicateUsername(String)
Username is already taken by another user.
UserNotFound(Uuid)
The requested user does not exist.
LeaseLost
The worker no longer holds the lease on this run.
Either another worker took it over after the lease expired, or the run
left the Running state (cancelled, failed, awaiting approval).
Fields
DuplicateArtifact
The step already holds an artifact with this name.
ScheduleNotFound(Uuid)
The requested schedule does not exist.
DelegationNotFound(Uuid)
The requested approval delegation does not exist.
ProviderAccountNotFound(Uuid)
The requested provider account does not exist.
DuplicateProviderAccount(String)
A provider account with this name already exists.
Database(String)
A database or I/O error from the backing store.
Serialization(Error)
JSON serialization or deserialization failed.
Crypto(String)
A cryptographic operation failed (encryption or decryption).
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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()