Enum pubgrub::error::PubGrubError[][src]

pub enum PubGrubError<P: Package, V: Version> {
    NoSolution(DerivationTree<P, V>),
    ErrorRetrievingDependencies {
        package: P,
        version: V,
        source: Box<dyn Error>,
    },
    DependencyOnTheEmptySet {
        package: P,
        version: V,
        dependent: P,
    },
    SelfDependency {
        package: P,
        version: V,
    },
    ErrorChoosingPackageVersion(Box<dyn Error>),
    ErrorInShouldCancel(Box<dyn Error>),
    Failure(String),
}
Expand description

Errors that may occur while solving dependencies.

Variants

NoSolution(DerivationTree<P, V>)

There is no solution for this set of dependencies.

ErrorRetrievingDependencies

Error arising when the implementer of DependencyProvider returned an error in the method get_dependencies.

Show fields

Fields of ErrorRetrievingDependencies

package: P

Package whose dependencies we want.

version: V

Version of the package for which we want the dependencies.

source: Box<dyn Error>

Error raised by the implementer of DependencyProvider.

DependencyOnTheEmptySet

Error arising when the implementer of DependencyProvider returned a dependency on an empty range. This technically means that the package can not be selected, but is clearly some kind of mistake.

Show fields

Fields of DependencyOnTheEmptySet

package: P

Package whose dependencies we want.

version: V

Version of the package for which we want the dependencies.

dependent: P

The dependent package that requires us to pick from the empty set.

SelfDependency

Error arising when the implementer of DependencyProvider returned a dependency on the requested package. This technically means that the package directly depends on itself, and is clearly some kind of mistake.

Show fields

Fields of SelfDependency

package: P

Package whose dependencies we want.

version: V

Version of the package for which we want the dependencies.

ErrorChoosingPackageVersion(Box<dyn Error>)

Error arising when the implementer of DependencyProvider returned an error in the method choose_package_version.

ErrorInShouldCancel(Box<dyn Error>)

Error arising when the implementer of DependencyProvider returned an error in the method should_cancel.

Failure(String)

Something unexpected happened.

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

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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.