summaryrefslogtreecommitdiff
path: root/toolkit/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/src/error.rs')
-rw-r--r--toolkit/src/error.rs24
1 files changed, 20 insertions, 4 deletions
diff --git a/toolkit/src/error.rs b/toolkit/src/error.rs
index 823dcd6..db5c313 100644
--- a/toolkit/src/error.rs
+++ b/toolkit/src/error.rs
@@ -4,21 +4,37 @@ use crate::Toolkit;
#[derive(Copy, Clone)]
pub enum Error {
- //E01,
+ E01,
E02,
E03,
E04,
- E05
+ E05,
+ E06,
+ E07,
+ E08,
+ E09,
+ E10,
+ E11,
+ E12,
+ E13
}
impl Error {
fn description(&self) -> &str {
match self {
- //Error::E01 => "An internal undocumented system error has occurred.",
+ Error::E01 => "An internal undocumented system error has occurred.",
Error::E02 => "The requested command could not be found.",
- Error::E03 => "A required paramater for this command was not provided.",
+ Error::E03 => "Too few arguments were provided to this command.",
Error::E04 => "The requested file or directory could not be found.",
Error::E05 => "Unable to go up one level from the root directory.",
+ Error::E06 => "No command name could be found in the input.",
+ Error::E07 => "Unexpected end of line: quotes do not match.",
+ Error::E08 => "Too many arguments were provided to this command.",
+ Error::E09 => "The requested file is not a directory.",
+ Error::E10 => "The requested file already exists.",
+ Error::E11 => "The directory to affect is not empty.",
+ Error::E12 => "The requested file is a directory.",
+ Error::E13 => "Input/output error occurred while reading the file."
//_ => "Unknown error."
}
}