pub enum Error {
SlotNotFound(String),
TaskNotFound(String),
NoSlotAvailable {
timeout_secs: u64,
},
PoolShutdown,
BudgetExhausted {
spent_microdollars: u64,
limit_microdollars: u64,
},
Wrapper(Error),
Json(Error),
PermissionPromptDetected {
tool_name: String,
stderr: String,
slot_id: String,
},
Io(Error),
Store(String),
}Expand description
Errors that can occur in claude-pool operations.
Variants§
SlotNotFound(String)
A slot with the given ID was not found.
TaskNotFound(String)
A task with the given ID was not found.
NoSlotAvailable
No slot became available within the timeout period.
PoolShutdown
The pool has been shut down and is no longer accepting work.
BudgetExhausted
Budget limit has been reached.
Fields
Wrapper(Error)
An error from the underlying Claude CLI wrapper.
Json(Error)
JSON serialization/deserialization error.
PermissionPromptDetected
The Claude CLI appears to have stalled on a permission prompt.
This occurs when the CLI requests tool approval and no human is present to respond. The slot blocks on stdin until it times out or is killed.
Fields
Io(Error)
Filesystem I/O error.
Store(String)
An error from the store backend.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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