pub enum TrackerError {
Network(String),
Auth(String),
NotFound(String),
Unsupported(String),
Other(String),
}Expand description
Typed error returned by TrackerProvider operations.
Using thiserror instead of Result<(), String> gives callers a proper
type to match on, enables ? propagation, and keeps error messages
consistent across all provider implementations.
Variants§
Network(String)
A network or HTTP-level failure occurred.
Auth(String)
The API token is missing, expired, or rejected.
NotFound(String)
The requested ticket does not exist on the tracker.
Unsupported(String)
The operation is not supported by this provider implementation.
Other(String)
Any other provider-specific error not covered by the variants above.
Trait Implementations§
Source§impl Debug for TrackerError
impl Debug for TrackerError
Source§impl Display for TrackerError
impl Display for TrackerError
Source§impl Error for TrackerError
impl Error for TrackerError
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 TrackerError
impl RefUnwindSafe for TrackerError
impl Send for TrackerError
impl Sync for TrackerError
impl Unpin for TrackerError
impl UnsafeUnpin for TrackerError
impl UnwindSafe for TrackerError
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