pub enum ModuleExecutionError {
NonZeroExit {
module_id: String,
exit_code: i32,
stderr: String,
},
Timeout {
module_id: String,
timeout_secs: u64,
},
OutputParseFailed {
module_id: String,
reason: String,
},
SpawnFailed(String),
ModuleError(ModuleError),
}Expand description
Errors produced during sandboxed module execution.
Variants§
NonZeroExit
The subprocess exited with a non-zero exit code. The captured stderr is preserved on the error so callers can surface it for debuggability (the subprocess panics, tracebacks, and user-facing error prints all land here).
Timeout
The subprocess timed out.
OutputParseFailed
The subprocess output could not be parsed.
SpawnFailed(String)
Failed to spawn the sandbox subprocess.
ModuleError(ModuleError)
A module-level error from the in-process apcore executor on the disabled
passthrough path. Preserved as a variant (rather than stringified) so
callers can map the underlying ErrorCode via
crate::cli::map_module_error_to_exit_code, keeping exit-code taxonomy
consistent between --sandbox and direct execution paths.
Trait Implementations§
Source§impl Debug for ModuleExecutionError
impl Debug for ModuleExecutionError
Source§impl Display for ModuleExecutionError
impl Display for ModuleExecutionError
Source§impl Error for ModuleExecutionError
impl Error for ModuleExecutionError
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 From<ModuleError> for ModuleExecutionError
impl From<ModuleError> for ModuleExecutionError
Source§fn from(source: ModuleError) -> Self
fn from(source: ModuleError) -> Self
Auto Trait Implementations§
impl Freeze for ModuleExecutionError
impl RefUnwindSafe for ModuleExecutionError
impl Send for ModuleExecutionError
impl Sync for ModuleExecutionError
impl Unpin for ModuleExecutionError
impl UnsafeUnpin for ModuleExecutionError
impl UnwindSafe for ModuleExecutionError
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.