pub enum TaskFailure {
Program {
message: String,
},
UnexpectedExit {
exit: Box<UnexpectedExit>,
message: String,
},
Unchecked {
exits: Vec<UncheckedExit>,
invoked: &'static str,
},
}Expand description
Why a task failed.
Variants§
Program
The program failed: fail(), a Starlark error, a module that cannot be
loaded, a step the executor could not run, or run() called while a module
loads. The message includes the Starlark stack when there is one.
UnexpectedExit
A step’s exit status was not in its expect list.
Fields
exit: Box<UnexpectedExit>The command, its exit status, and its captured output.
Unchecked
The program ended, and left steps unchecked, which fails the task with
kizz build --fail-unchecked or kizz run --fail-unchecked (“Exit codes and
failure”).
Fields
exits: Vec<UncheckedExit>Each unchecked step, in the order the program ran them, with its command, its exit status, and its captured output.
invoked: &'static strThe command that was given --fail-unchecked, as the message names it:
kizz build or kizz run (see Engine::command_name).
Trait Implementations§
Source§impl Clone for TaskFailure
impl Clone for TaskFailure
Source§impl Debug for TaskFailure
impl Debug for TaskFailure
Source§impl Display for TaskFailure
impl Display for TaskFailure
impl Eq for TaskFailure
Source§impl Error for TaskFailure
impl Error for TaskFailure
1.30.0 · 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
use the Display impl or to_string()
Source§impl PartialEq for TaskFailure
impl PartialEq for TaskFailure
impl StructuralPartialEq for TaskFailure
Auto Trait Implementations§
impl Freeze for TaskFailure
impl RefUnwindSafe for TaskFailure
impl Send for TaskFailure
impl Sync for TaskFailure
impl Unpin for TaskFailure
impl UnsafeUnpin for TaskFailure
impl UnwindSafe for TaskFailure
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
impl<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more