pub struct SessionOperationExecutionError { /* private fields */ }Expand description
Public error returned by operation-level APIs when execution fails.
Unlike plain ConnectError, this error preserves already completed child
step outputs so callers can inspect partial progress for multi-step
operations outside transaction/workflow execution.
Implementations§
Source§impl SessionOperationExecutionError
impl SessionOperationExecutionError
Sourcepub fn new(error: ConnectError, partial_output: SessionOperationOutput) -> Self
pub fn new(error: ConnectError, partial_output: SessionOperationOutput) -> Self
Build a new operation execution error from the root cause and partial output.
Sourcepub fn error(&self) -> &ConnectError
pub fn error(&self) -> &ConnectError
Borrow the underlying connection/session error.
Sourcepub fn partial_output(&self) -> &SessionOperationOutput
pub fn partial_output(&self) -> &SessionOperationOutput
Borrow partial child step outputs captured before the failure.
Sourcepub fn into_parts(self) -> (ConnectError, SessionOperationOutput)
pub fn into_parts(self) -> (ConnectError, SessionOperationOutput)
Consume the wrapper and return both the root cause and partial output.
Trait Implementations§
Source§impl Error for SessionOperationExecutionError
impl Error for SessionOperationExecutionError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SessionOperationExecutionError
impl !RefUnwindSafe for SessionOperationExecutionError
impl Send for SessionOperationExecutionError
impl Sync for SessionOperationExecutionError
impl Unpin for SessionOperationExecutionError
impl UnsafeUnpin for SessionOperationExecutionError
impl !UnwindSafe for SessionOperationExecutionError
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