pub enum Error {
Show 23 variants
ActiveVersionGet {
addr: Address,
err: Box<Self>,
},
InputDeserialize {
path: PathBuf,
raw: String,
err: Error,
},
InputRead {
path: PathBuf,
err: Error,
},
InputToJson {
path: PathBuf,
err: Error,
},
InvalidPolicyActivated {
addr: Address,
got: Option<i64>,
expected: Option<i64>,
},
MissingExtension {
path: PathBuf,
},
NodeConfigIncompatible {
path: PathBuf,
got: String,
},
NodeConfigLoad {
path: PathBuf,
err: YamlError,
},
PolicyWithoutVersion {
addr: Address,
which: String,
},
PromptVersions {
err: Box<Self>,
},
RequestBuild {
kind: &'static str,
addr: String,
err: Error,
},
RequestFailure {
addr: String,
code: StatusCode,
response: Option<String>,
},
RequestSend {
kind: &'static str,
addr: String,
err: Error,
},
ResponseDeserialize {
addr: String,
raw: String,
err: Error,
},
ResponseDownload {
addr: String,
err: Error,
},
TempFileCreate {
path: PathBuf,
err: Error,
},
TempFileWrite {
path: PathBuf,
err: Error,
},
TokenGenerate {
secret: PathBuf,
err: Error,
},
UnknownExtension {
path: PathBuf,
ext: String,
},
UnspecifiedInputLanguage,
VersionGetBody {
addr: Address,
version: i64,
err: Box<Self>,
},
VersionSelect {
err: Error,
},
VersionsGet {
addr: Address,
err: Box<Self>,
},
}
Expand description
Defines errors that may originate in branectl policies ...
subcommands.
Variants§
ActiveVersionGet
Failed to get the active version of the policy.
InputDeserialize
Failed to deserialize the read input file as JSON.
InputRead
Failed to read the input file.
InputToJson
Failed to compile the input file to eFLINT JSON.
InvalidPolicyActivated
The wrong policy was activated on the remote checker, somehow.
MissingExtension
A policy language was attempted to derive from a path without extension.
NodeConfigIncompatible
The given node config file was not a worker config file.
NodeConfigLoad
Failed to load the node configuration file for this node.
PolicyWithoutVersion
Found a policy on a checker without a version defined.
PromptVersions
Failed to prompt the user for version selection.
RequestBuild
Failed to build a request.
RequestFailure
A request failed for some reason.
RequestSend
Failed to send a request.
ResponseDeserialize
Failed to deserialize the checker response as valid JSON.
ResponseDownload
Failed to download the body of the checker’s response.
TempFileCreate
Failed to create a temporary file.
TempFileWrite
Failed to write to a temporary file from stdin.
TokenGenerate
Failed to generate a new token.
UnknownExtension
A policy language was attempted to derive from the extension but we didn’t know it.
UnspecifiedInputLanguage
The policy was given on stdout but no language was specified.
VersionGetBody
Failed to query the checker about a specific version.
VersionSelect
Failed to query the user which version to select.
VersionsGet
Failed to get the versions on the remote checker.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
source§impl<T> ErrorTrace for T
impl<T> ErrorTrace for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self
to an expression for Diesel’s query builder. Read more