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(RemoteObjectKindString), NameNotFound(RemoteObjectKindString), IdNotFound(RemoteObjectKindString), InvalidObjectSyntax(RemoteObjectKindStringString), InvalidIdSyntax(RemoteObjectKindStringString), UnsupportedRemoteUrlSyntax(StringString), UrlHostMismatch { url: String, forge: String, },
}
Expand description

Errors accessing forges

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.

KindMustBeSpecified

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.

TooManyResults

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(RemoteObjectKindString)

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(RemoteObjectKindString)

Name refers to nonexistent remote object

IdNotFound(RemoteObjectKindString)

Id or number refers to nonexistent remote object

InvalidObjectSyntax(RemoteObjectKindStringString)

Invalid object syntax

InvalidIdSyntax(RemoteObjectKindStringString)

Invalid id or number syntax

UnsupportedRemoteUrlSyntax(StringString)

Unsupported remote URL format

UrlHostMismatch

Remote URL does not match the forge hsotname

Show fields

Fields of UrlHostMismatch

url: Stringforge: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.