Enum shell_candy::Error
source · pub enum Error {
TaskFailure {
task: String,
exit_status: ExitStatus,
},
InvalidTask {
task: String,
reason: String,
},
CouldNotSpawn {
task: String,
source: Error,
},
CouldNotWait {
task: String,
source: Error,
},
CouldNotFindCurrentDirectory {
source: Error,
},
EarlyReturn(Box<dyn Error + Send + Sync + 'static>),
PoisonedLog {
task: String,
},
}Expand description
The possible errors reported by a ShellTask.
Variants
TaskFailure
This error occurs when a command exits with a status other than 0.
InvalidTask
This error occurs when a task could not be instantiated because it was malformed. This is a usage error, make sure you’ve typed the command correctly.
CouldNotSpawn
Fields
task: StringThe task that could not spawn.
source: ErrorThe io::Error that was reported by std::process::Command::spawn.
This error occurs when a task could not spawn. Originates from std::process::Command::spawn.
CouldNotWait
Fields
task: StringThe task that could not be waited for.
source: ErrorThe io::Error that was reported by std::process::Child::wait.
There was an error waiting for the task status. Originates from std::process::Child::wait.
CouldNotFindCurrentDirectory
Fields
source: ErrorThe io::Error that was reported by std::env::current_dir.
This error is returned when the current directory cannot be found. Originates from std::env::current_dir.
EarlyReturn(Box<dyn Error + Send + Sync + 'static>)
This error can be returned from log handlers to terminate early.
PoisonedLog
Fields
task: StringThe task that encountered an unrecoverable error
This error is returned when the log lock is poisoned.