pub enum GiteeError {
Api {
status: u16,
message: String,
},
Unauthorized,
NotFound(String),
Http(Error),
Io(Error),
Config(String),
NotLoggedIn,
RepoResolve(String),
Usage(String),
RateLimited(String),
Network(String),
Other(Error),
}Variants§
Api
NotFound(String)
Http(Error)
Io(Error)
Config(String)
NotLoggedIn
RepoResolve(String)
Usage(String)
RateLimited(String)
Gitee returned 429 — too many requests. Maps to exit code 5.
Network(String)
Could not reach the Gitee host (DNS failure, connection refused, etc.). Maps to exit code 6.
Other(Error)
Implementations§
Source§impl GiteeError
Stable, documented exit codes (see README “Exit codes”).
impl GiteeError
Stable, documented exit codes (see README “Exit codes”).
0success1generic failure (API error, unexpected)2usage error (missing flag, bad arg, non-TTY prompt attempted)3auth error (no token, invalid, expired)4not found (repo/issue/PR/release)5rate limited (HTTP 429)6network error (host unreachable)
Trait Implementations§
Source§impl Debug for GiteeError
impl Debug for GiteeError
Source§impl Display for GiteeError
impl Display for GiteeError
Source§impl Error for GiteeError
impl Error for GiteeError
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()
Source§impl From<Error> for GiteeError
impl From<Error> for GiteeError
Source§impl From<Error> for GiteeError
impl From<Error> for GiteeError
Auto Trait Implementations§
impl !RefUnwindSafe for GiteeError
impl !UnwindSafe for GiteeError
impl Freeze for GiteeError
impl Send for GiteeError
impl Sync for GiteeError
impl Unpin for GiteeError
impl UnsafeUnpin for GiteeError
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