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
WriteError
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