pub struct ErrorSummary {
pub exception: String,
pub message: String,
pub traceback: String,
}Expand description
A structured error summary: why a DAG file couldn’t be imported, or why a task failed.
Fields§
§exception: StringThe exception’s class name, e.g. ModuleNotFoundError; ParseTimeout or
RunnerDied when the agent stopped a file that took too long or lost its runner.
message: StringThe exception’s message.
traceback: StringThe last lines of the traceback (empty for a timeout).
Implementations§
Source§impl ErrorSummary
impl ErrorSummary
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Whether it is a transient import error (decision 72.2): the agent stopped the file (a timeout, a runner that died), so the code itself may be fine. Such a file is parsed again, and doesn’t hold its DAGs.
Trait Implementations§
Source§impl Clone for ErrorSummary
impl Clone for ErrorSummary
Source§fn clone(&self) -> ErrorSummary
fn clone(&self) -> ErrorSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorSummary
impl Debug for ErrorSummary
Source§impl<'de> Deserialize<'de> for ErrorSummary
impl<'de> Deserialize<'de> for ErrorSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorSummary
Source§impl JsonSchema for ErrorSummary
impl JsonSchema for ErrorSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ErrorSummary
impl PartialEq for ErrorSummary
Source§impl Serialize for ErrorSummary
impl Serialize for ErrorSummary
impl StructuralPartialEq for ErrorSummary
Auto Trait Implementations§
impl Freeze for ErrorSummary
impl RefUnwindSafe for ErrorSummary
impl Send for ErrorSummary
impl Sync for ErrorSummary
impl Unpin for ErrorSummary
impl UnsafeUnpin for ErrorSummary
impl UnwindSafe for ErrorSummary
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