pub enum Error {
Show 19 variants ReadError { path: PathBuf, io_error: Error, }, WriteError { path: PathBuf, io_error: Error, }, NoWorkingDirectory { io_error: Error, }, NulByteError { arg: String, }, StartProcessError { message: String, }, WaitProcessError { io_error: Error, }, GetProcessOutputError { io_error: Error, }, RunInfoPyError { message: String, }, UpgradePipError {}, ParsePipFreezeError { line: String, }, MissingSetupPy {}, MissingLock { expected_path: PathBuf, }, MissingVenv { path: PathBuf, }, FileExists { path: PathBuf, }, Other { message: String, }, MalformedLock { details: String, }, NothingToBump { name: String, }, MultipleBumps { name: String, }, IncorrectLockedType { name: String, expected_type: String, },
}
Expand description

Every variant matches a type of error we want the end-use to see. here so that we have full control over the error messages printed to the user.

Variants

ReadError

Fields

path: PathBuf
io_error: Error

WriteError

Fields

path: PathBuf
io_error: Error

NoWorkingDirectory

Fields

io_error: Error

NulByteError

Fields

arg: String

StartProcessError

Fields

message: String

WaitProcessError

Fields

io_error: Error

GetProcessOutputError

Fields

io_error: Error

RunInfoPyError

Fields

message: String

UpgradePipError

Fields

ParsePipFreezeError

Fields

line: String

MissingSetupPy

Fields

MissingLock

Fields

expected_path: PathBuf

MissingVenv

Fields

path: PathBuf

FileExists

Fields

path: PathBuf

Other

Fields

message: String

MalformedLock

Fields

details: String

NothingToBump

Fields

name: String

MultipleBumps

Fields

name: String

IncorrectLockedType

Fields

name: String
expected_type: String

Trait Implementations

Formats the value using the given formatter. Read more

Implement Display for our Error type

Formats the value using the given formatter. Read more

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.