pub enum WorkspaceError {
UnknownProject {
name: String,
known: String,
},
AmbiguousProject {
known: String,
},
Empty,
UnknownWorkspace {
name: String,
known: String,
},
AmbiguousWorkspace {
known: String,
},
Discover {
root: PathBuf,
msg: String,
},
Unqualified {
key: String,
},
NoGraph {
name: String,
path: PathBuf,
},
Prepare {
name: String,
msg: String,
},
Poisoned,
Git(GitError),
Store(StoreError),
}Expand description
A failure resolving or opening a project’s graph.
Variants§
UnknownProject
A call named a project the workspace does not know.
AmbiguousProject
A call omitted project but the workspace has no single default (it holds
several projects), so the selection is ambiguous.
Empty
The workspace is registered but empty (no repos resolved).
UnknownWorkspace
A selector named a workspace the WorkspaceSet does not know.
Fields
AmbiguousWorkspace
A selection omitted a name but the WorkspaceSet holds several
workspaces, so the choice is ambiguous.
Discover
Reading a workspace root directory during repo discovery failed.
Fields
Unqualified
A cross-repo target was not a project-qualified key (<project>::<key>).
NoGraph
The project’s graph store does not exist yet — its repo has not been
synced (roteiro sync).
Prepare
The on-open hook (serve --sync-on-access) failed to prepare a project’s
graph before it was first served.
Poisoned
A store lock was poisoned by a panic in another thread.
Git(GitError)
Discovering the repo for a registered path failed.
Store(StoreError)
Opening the project’s store failed.
Trait Implementations§
Source§impl Debug for WorkspaceError
impl Debug for WorkspaceError
Source§impl Display for WorkspaceError
impl Display for WorkspaceError
Source§impl Error for WorkspaceError
impl Error for WorkspaceError
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()