pub enum GitcoreError {
Show 14 variants
Io(Error),
Serde(Error),
InvalidConfig(String),
InvalidAccountName(String),
DuplicateAccountName(String),
DuplicateHostAlias(String),
UnsupportedPlatform(String),
AccountNotFound(String),
EmptyUsername,
EmptyEmail,
EmptyPassword,
NotGitRepository(PathBuf),
MissingOriginRemote(PathBuf),
MissingProviderUrl(Platform),
}Expand description
Typed error surface for library consumers.
Variants§
Io(Error)
Serde(Error)
InvalidConfig(String)
InvalidAccountName(String)
DuplicateAccountName(String)
DuplicateHostAlias(String)
UnsupportedPlatform(String)
AccountNotFound(String)
EmptyUsername
EmptyEmail
EmptyPassword
NotGitRepository(PathBuf)
MissingOriginRemote(PathBuf)
MissingProviderUrl(Platform)
Trait Implementations§
Source§impl Debug for GitcoreError
impl Debug for GitcoreError
Source§impl Display for GitcoreError
impl Display for GitcoreError
Source§impl Error for GitcoreError
impl Error for GitcoreError
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 GitcoreError
impl From<Error> for GitcoreError
Auto Trait Implementations§
impl Freeze for GitcoreError
impl !RefUnwindSafe for GitcoreError
impl Send for GitcoreError
impl Sync for GitcoreError
impl Unpin for GitcoreError
impl UnsafeUnpin for GitcoreError
impl !UnwindSafe for GitcoreError
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