Skip to main content

Module error

Module error 

Source
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:

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§

DeclarationSite
A declared label, the build file that declared it, and whose code made the declaration.

Enums§

ActionFound
What an Error::ActionConflict found instead of exactly one of rule and run.
DeclarationField
Which field of a declaration an Error::InvalidDeclaration is about.
DeclaredKind
What a label was declared as.
Error
Every way a call into this crate can fail.
EvaluationFailure
How an adapter failed to evaluate one build file.
EvaluationLimit
A ceiling an evaluation can reach.
NameKind
Which domain name an Error::InvalidName is about.
PortName
Which port an Error::Adapter came through.
RemoteFlagConflict
A combination of remote cache flags that an Error::RemoteFlags refuses.
RemoteVariable
The variable of a remote cache switch.
TreeFault
Why a list of files an Error::InvalidTree is about is not a directory tree.
UnsandboxedRemote
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.