#[non_exhaustive]pub enum WorkflowApiError {
BadRequest(String),
Compile(CompileError),
Unauthorized,
Forbidden,
RunNotFound,
TooManyRuns,
Internal(Box<dyn Error + Send + Sync>),
}Expand description
Every failure the run-service surfaces to a client.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadRequest(String)
Malformed / semantically invalid request (e.g. a non-object input).
Compile(CompileError)
The submitted definition did not compile against the registry. The
CompileError message is actionable authoring feedback and is safe
to return (it names ids, carries no stack trace or secret).
No valid credential was presented.
Forbidden
The credential lacks the required scope.
RunNotFound
No run exists for the requested id.
TooManyRuns
The concurrency cap is saturated.
Internal(Box<dyn Error + Send + Sync>)
An unexpected server-side failure. The source is logged, never returned to the client.
Trait Implementations§
Source§impl Debug for WorkflowApiError
impl Debug for WorkflowApiError
Source§impl Display for WorkflowApiError
impl Display for WorkflowApiError
Source§impl Error for WorkflowApiError
impl Error for WorkflowApiError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CompileError> for WorkflowApiError
impl From<CompileError> for WorkflowApiError
Source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for WorkflowApiError
impl IntoResponse for WorkflowApiError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowApiError
impl !UnwindSafe for WorkflowApiError
impl Freeze for WorkflowApiError
impl Send for WorkflowApiError
impl Sync for WorkflowApiError
impl Unpin for WorkflowApiError
impl UnsafeUnpin for WorkflowApiError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more