pub enum PlanError {
Show 24 variants
InfraFileLoadError {
err: Error,
},
AmbigiousLocationError {
name: String,
locs: Locations,
},
RequestError {
address: String,
err: Error,
},
RequestFailure {
address: String,
code: StatusCode,
err: Option<String>,
},
RequestBodyError {
address: String,
err: Error,
},
RequestParseError {
address: String,
raw: String,
err: Error,
},
UnsupportedCapabilities {
task: String,
loc: String,
expected: HashSet<Capability>,
got: HashSet<Capability>,
},
UnknownDataset {
name: String,
},
UnknownIntermediateResult {
name: String,
},
DataPlanError {
err: RuntimeDataIndexError,
},
DatasetUnavailable {
name: String,
locs: Vec<String>,
},
IntermediateResultUnavailable {
name: String,
locs: Vec<String>,
},
WorkflowSerialize {
id: String,
err: Error,
},
PlanningRequestSerialize {
id: String,
err: Error,
},
PlanningRequest {
id: String,
url: String,
err: Error,
},
PlanningRequestSend {
id: String,
url: String,
err: Error,
},
PlanningFailure {
id: String,
url: String,
code: StatusCode,
response: Option<String>,
},
PlanningResponseDownload {
id: String,
url: String,
err: Error,
},
PlanningResponseParse {
id: String,
url: String,
raw: String,
err: Error,
},
PlanningPlanParse {
id: String,
url: String,
raw: Value,
err: Error,
},
GrpcConnectError {
endpoint: Address,
err: JobServiceError,
},
ProxyError {
err: Box<dyn Send + Error + 'static>,
},
GrpcRequestError {
what: &'static str,
endpoint: Address,
err: Status,
},
CheckerDenied {
domain: Location,
reasons: Vec<String>,
},
}
Expand description
Defines common errors that occur when trying to plan a workflow.
Variants§
InfraFileLoadError
Failed to load the infrastructure file.
AmbigiousLocationError
The user didn’t specify the location (specifically enough).
RequestError
Failed to send a request to the API service.
RequestFailure
The request failed with a non-OK status code
RequestBodyError
Failed to get the body of a request.
RequestParseError
Failed to parse the body of the request as valid JSON
UnsupportedCapabilities
The planned domain does not support the task.
UnknownDataset
The given dataset was unknown to us.
UnknownIntermediateResult
The given intermediate result was unknown to us.
DataPlanError
We failed to insert one of the dataset in the runtime set.
Fields
We can’t access a dataset in the local instance.
We can’t access an intermediate result in the local instance.
WorkflowSerialize
Failed to serialize the internal workflow.
PlanningRequestSerialize
Failed to serialize the PlanningRequest
.
PlanningRequest
Failed to create a request to plan at the planner.
PlanningRequestSend
Failed to send a request to plan at the planner.
PlanningFailure
The server failed to plan.
PlanningResponseDownload
Failed to download the server’s response.
PlanningResponseParse
failed to parse the server’s response.
PlanningPlanParse
Failed to parse the server’s returned plan.
GrpcConnectError
Failed to a checker to validate the workflow
ProxyError
Failed to connect to the proxy service
GrpcRequestError
Failed to submit the gRPC request to validate a workflow.
CheckerDenied
One of the checkers denied everything :/
Trait Implementations§
source§impl Error for PlanError
impl Error for PlanError
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 PlanError
impl !RefUnwindSafe for PlanError
impl Send for PlanError
impl !Sync for PlanError
impl Unpin for PlanError
impl !UnwindSafe for PlanError
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> 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