Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/RustyMft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 769fa94..4dc1547 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -6,6 +6,7 @@ use std::io;
pub enum ErrorKind {
IoError,
InvalidFileSignature,
+ InvalidEntrySignature,
Utf16Error
}
@@ -29,6 +30,14 @@ impl MftError{
}
}
#[allow(dead_code)]
+ pub fn invalid_entry_signature(err: String)->Self{
+ MftError {
+ message: format!("{}",err),
+ kind: ErrorKind::InvalidFileSignature,
+ info: Some(vec![]),
+ }
+ }
+ #[allow(dead_code)]
pub fn decode_error(err: String)->Self{
MftError {
message: format!("{}",err),