pub enum BosonError {
TaskNotFound(String),
JobNotFound(String),
RunNotFound(String),
TaskConfigNotFound(String),
ParamError(String),
SignatureMismatch {
expected: String,
actual: String,
},
InvalidConfig(String),
Backend(String),
Internal(String),
RateLimited(String),
UnknownBackend(String),
}Expand description
Errors that can occur in Boson operations.
Variants§
TaskNotFound(String)
Task not found in registry.
JobNotFound(String)
Job not found.
RunNotFound(String)
Run not found.
TaskConfigNotFound(String)
Task config not found.
ParamError(String)
Parameter serialization/deserialization error.
SignatureMismatch
Signature mismatch between job and current task.
Fields
InvalidConfig(String)
Invalid priority or pool.
Backend(String)
Persistence / adapter backend failure.
Internal(String)
Internal error.
RateLimited(String)
Enqueue blocked by rate limit or in-flight cap; caller should retry after backoff.
UnknownBackend(String)
Named queue backend not registered on the router.
Trait Implementations§
Source§impl Debug for BosonError
impl Debug for BosonError
Source§impl Display for BosonError
impl Display for BosonError
Source§impl Error for BosonError
impl Error for BosonError
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 BosonError
impl RefUnwindSafe for BosonError
impl Send for BosonError
impl Sync for BosonError
impl Unpin for BosonError
impl UnsafeUnpin for BosonError
impl UnwindSafe for BosonError
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