pub enum RashError {
NullByteInCommand {
pos: usize,
},
KernelError {
message: String,
},
FailedToReadStdout {
message: String,
},
FailedToReadStderr {
message: String,
},
}
Expand description
The error thrown if something went wrong in the processing of the command.
Variants§
NullByteInCommand
The given command contained a null byte. Commands must not contain null bytes as they’re converted into CStrings.
If this error is thrown, the error message will contain the position of the null byte in the command.
KernelError
A system call failed.
If this error is thrown, the error message will contain the errno, a description of syscall that failed, and the strerror output.
FailedToReadStdout
We couldn’t obtain stdout. This can occur if the stdout is not valid UTF-8 or for any standard IO error kind.
If this error is thrown, the error message will be the error message
given by calling to_string()
on the source error.
FailedToReadStderr
We couldn’t obtain stderr. This can occur if the stderr is not valid UTF-8 or for any standard IO error kind.
If this error is thrown, the error message will be the error message
given by calling to_string()
on the source error.