pub enum ForgeError {
Transport(TransportError),
Archived,
RuleExists {
name: String,
},
VariableName(VariableNameError),
RuleDisappeared {
name: String,
},
EmptyCallerLogin(EmptyUserName),
}Expand description
Anything that stops a Forgejo request from producing a usable answer.
Variants§
Transport(TransportError)
Transport trouble: unreachable, a bad credential, a missing resource, a rate limit, a rejected body, or a body this build cannot read.
Archived
The repository rejects writes because it is archived.
RuleExists
POST .../branch_protections answered 403 and the rule reads back, so
it is already there.
VariableName(VariableNameError)
An Actions variable name is not one Forgejo stores.
RuleDisappeared
A branch rule answered 403 on create (meaning it exists) but then could not be read back to apply the recovering patch.
EmptyCallerLogin(EmptyUserName)
The forge answered the current user request with an empty login.
Trait Implementations§
Source§impl Debug for ForgeError
impl Debug for ForgeError
Source§impl Display for ForgeError
impl Display for ForgeError
Source§impl Error for ForgeError
impl Error for ForgeError
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<EmptyUserName> for ForgeError
impl From<EmptyUserName> for ForgeError
Source§fn from(source: EmptyUserName) -> Self
fn from(source: EmptyUserName) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for ForgeError
impl From<TransportError> for ForgeError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Source§impl From<VariableNameError> for ForgeError
impl From<VariableNameError> for ForgeError
Source§fn from(source: VariableNameError) -> Self
fn from(source: VariableNameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ForgeError
impl !UnwindSafe for ForgeError
impl Freeze for ForgeError
impl Send for ForgeError
impl Sync for ForgeError
impl Unpin for ForgeError
impl UnsafeUnpin for ForgeError
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