Expand description
The crate’s one error type and the Result alias every fallible call returns.
A single file rather than one error type per module: a caller branches on a field, never on
the text of a message, and every module in this crate returns the same Result without a
conversion at the boundary.
Responsibilities:
Error— every way a call into this crate can fail.NameKind— which domain name anError::InvalidNameis about.EvaluationFailureandEvaluationLimit— how an adapter failed to evaluate a build file.DeclarationField— which field of a declaration anError::InvalidDeclarationis about.ActionFound— what anError::ActionConflictfound instead of one action.DeclaredKind— what a label anError::WrongReferenceKindis about was declared as.DeclarationSite— a declared label, its build file and whose code declared it: the declaration holding a bad reference, one target on a dependency cycle, one declaration of a duplicated label, or the target a test run named that is not a test.PortName— which port anError::Adaptercame through.RemoteVariableandRemoteFlagConflict— which switch variable anError::RemoteSwitchrefused, and which flag combination anError::RemoteFlagsdid.UnsandboxedRemote— what anError::UploadUnsandboxedfound asked for while actions run bare.TreeFault— why a list of files anError::InvalidTreeis about is not a tree.Result— the crate-wide alias.
Non-responsibilities: presentation. Error’s Display renders one diagnostic, on one line
unless an adapter’s own message spans several. An error is returned, and its caller shows it.
Structs§
- Declaration
Site - A declared label, the build file that declared it, and whose code made the declaration.
Enums§
- Action
Found - What an
Error::ActionConflictfound instead of exactly one ofruleandrun. - Declaration
Field - Which field of a declaration an
Error::InvalidDeclarationis about. - Declared
Kind - What a label was declared as.
- Error
- Every way a call into this crate can fail.
- Evaluation
Failure - How an adapter failed to evaluate one build file.
- Evaluation
Limit - A ceiling an evaluation can reach.
- Name
Kind - Which domain name an
Error::InvalidNameis about. - Port
Name - Which port an
Error::Adaptercame through. - Remote
Flag Conflict - A combination of remote cache flags that an
Error::RemoteFlagsrefuses. - Remote
Variable - The variable of a remote cache switch.
- Tree
Fault - Why a list of files an
Error::InvalidTreeis about is not a directory tree. - Unsandboxed
Remote - What a run asked of the remote that actions run bare cannot give.
Type Aliases§
- Result
- The result of any fallible call in this crate.