Enum gitforge::forge::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
UncleassifiedOperationError(Error), OperationBuildFailed(Error), ResultsProcessingFailed(Error), AncillaryOperationFailed(Error), ClientCreationFailed(Error), KindMustBeSpecified, KindDisabled(Kind), Async(Error), TokenAlwaysRequired(Kind), TooManyResults, UnsupportedOperation(Error), UnsupportedState(RemoteObjectKind, String), NameNotFound(RemoteObjectKind, String), IdNotFound(RemoteObjectKind, String), InvalidObjectSyntax(RemoteObjectKind, String, String), InvalidIdSyntax(RemoteObjectKind, String, String), UnsupportedRemoteUrlSyntax(String, String), UrlHostMismatch { url: String, forge: String, },
Expand description
Errors accessing forges
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UncleassifiedOperationError(Error)
Forge operation error (unclassified)
Something went wrong accessing the forge. The error has not been more completely classified.
OperationBuildFailed(Error)
Forge operation build failed
The forge-specific client library rejected the attempted request or otherwise failed to construct an appropriate query to the forge.
This error occured before the actual forge was contacted.
ResultsProcessingFailed(Error)
Forge operation result processing failed
The principal forge operation completed successfully (at least as far as the forge-specific client library was concerned) but error occurred processing the results.
AncillaryOperationFailed(Error)
Forge ancillary operation failed
An error occurred while conducting operations ancillary to the principally-requested operation.
ClientCreationFailed(Error)
Forge client creation error
The operation to construct a forge client instance failed.
Perhaps the forge-kind-specific library did not like the
Config
.
Forge kind must be specified
Config
contains Option<Kind>
so that it impl Default
and
for future compatibility. But the kind must, currently, always
be specified.
KindDisabled(Kind)
Forge kind disabled in this build
This build of the gitforge
library has been compiled without
support for the specified forge type.
Async(Error)
Async runtime failed
The asynchronous runtimee failed
TokenAlwaysRequired(Kind)
Token always required for this forge kind
Some forges (eg gitlab) always need a token and do not support anonymous API access.
Search query had too many results.
See the discussion of Searching and limits by
ForgeMethods::request
. Narrow your search by providing more
parametsrs.
UnsupportedOperation(Error)
Unsupported operation
The operation is not supported on this kind of forge.
UnsupportedState(RemoteObjectKind, String)
Unsupported state in this context
A state or status field value in a request was not supported. Whether a particular state or status is supported might depend on the request.
NameNotFound(RemoteObjectKind, String)
Name refers to nonexistent remote object
IdNotFound(RemoteObjectKind, String)
Id or number refers to nonexistent remote object
InvalidObjectSyntax(RemoteObjectKind, String, String)
Invalid object syntax
InvalidIdSyntax(RemoteObjectKind, String, String)
Invalid id or number syntax
Unsupported remote URL format
Remote URL does not match the forge hsotname
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> AsErrorSource for T where
T: 'static + Error,
impl<T> AsErrorSource for T where
T: 'static + Error,
pub fn as_error_source(&self) -> &(dyn Error + 'static)
pub fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more