pub enum AskError {
Parse {
stdout_head: String,
},
Subprocess {
exit_code: i32,
stderr: String,
},
Orphan {
reason: OrphanReason,
short_id: String,
},
Socket {
message: String,
},
Timeout {
elapsed_sec: f64,
short_id: String,
},
Io {
message: String,
},
}Expand description
Errors raised by the claude ask path. The orchestration layer maps each to the Python exit code (1/12/13/15) and event payload.
Variants§
Parse
claude --bg stdout did not match the short-id contract.
Subprocess
claude --bg exited non-zero, timed out (124), or was missing (127).
Orphan
Session not reachable (locate/probe failure).
Socket
Socket connect/write/close failure during send.
Timeout
No reply within the poll timeout.
Io
A non-transient I/O error while reading state.json during polling (EACCES/EROFS/EISDIR). Python lets the OSError propagate rather than masking it as a 600s timeout; we surface it as a fatal exit-1 error.
Trait Implementations§
Source§impl Error for AskError
impl Error for AskError
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 AskError
impl RefUnwindSafe for AskError
impl Send for AskError
impl Sync for AskError
impl Unpin for AskError
impl UnsafeUnpin for AskError
impl UnwindSafe for AskError
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