From afa1525f0c9d8cb721d982f120cd0897f0089b91 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 8 Jan 2020 15:26:38 +0000 Subject: [PATCH] Add option to recreate databases from scratch. --- Enums/ErrorNumber.cs | 103 +++++++++++++++++++++++++++++-------------- 1 file changed, 69 insertions(+), 34 deletions(-) diff --git a/Enums/ErrorNumber.cs b/Enums/ErrorNumber.cs index 04277d4..789d0b6 100644 --- a/Enums/ErrorNumber.cs +++ b/Enums/ErrorNumber.cs @@ -42,39 +42,74 @@ namespace DiscImageChef.CommonTypes.Enums public enum ErrorNumber { /// No error - NoError = 0, /// User requested help to be shown - HelpRequested = 1, /// Command found nothing - NothingFound = 2, /// Media has been already dumped completely - AlreadyDumped = 3, /// Image and its sectors cannot be verified - NotVerificable = 4, /// There are bad sectors and image cannot be verified - BadSectorsImageNotVerified = 5, /// All sectors are good and image cannot be verified - CorrectSectorsImageNotVerified = 6, /// Image is bad and sectors cannot be verified - BadImageSectorsNotVerified = 7, /// Image is bad and there are bad sectors - BadImageBadSectors = 8, /// All sectors are good and image is bad - CorrectSectorsBadImage = 9, /// Image is good and sectors cannot be verified - CorrectImageSectorsNotVerified = 10, /// Image is good and there are bad sectors - CorrectImageBadSectors = 11, /// Exception has been raised - UnexpectedException = -1, /// The number of arguments is not as expected - UnexpectedArgumentCount = -2, /// A required argument is not present - MissingArgument = -3, /// A specified argument contains an invalid value - InvalidArgument = -4, /// The specified file cannot be found - FileNotFound = -5, /// The specified file cannot be opened - CannotOpenFile = -6, /// The specified encoding cannot be found - EncodingUnknown = -7, /// The image format has not been recognized - UnrecognizedFormat = -8, /// The image format failed to open - CannotOpenFormat = -9, /// The specified metadata sidecar does not have the correct format - InvalidSidecar = -10, /// The specified resume map does not have the correct format - InvalidResume = -11, /// The specified destination file/folder already exists - DestinationExists = -12, /// The specified image format cannot be found - FormatNotFound = -13, /// More than one format found for the specified search criteria - TooManyFormats = -14, /// The specified format does not support the specified media - UnsupportedMedia = -15, /// Data will be lost writing the specified format - DataWillBeLost = -16, /// Cannot create destination format - CannotCreateFormat = -17, /// Error writing data - WriteError = -18, /// Argument expected a directory, but found a file - ExpectedDirectory = -19, /// Argument expected a file, but found a directory - ExpectedFile = -20, /// Cannot open device - CannotOpenDevice = -21, /// The specified operation requires administrative privileges - NotEnoughPermissions = -22 + NoError = 0, + /// User requested help to be shown + HelpRequested = 1, + /// Command found nothing + NothingFound = 2, + /// Media has been already dumped completely + AlreadyDumped = 3, + /// Image and its sectors cannot be verified + NotVerificable = 4, + /// There are bad sectors and image cannot be verified + BadSectorsImageNotVerified = 5, + /// All sectors are good and image cannot be verified + CorrectSectorsImageNotVerified = 6, + /// Image is bad and sectors cannot be verified + BadImageSectorsNotVerified = 7, + /// Image is bad and there are bad sectors + BadImageBadSectors = 8, + /// All sectors are good and image is bad + CorrectSectorsBadImage = 9, + /// Image is good and sectors cannot be verified + CorrectImageSectorsNotVerified = 10, + /// Image is good and there are bad sectors + CorrectImageBadSectors = 11, + /// Exception has been raised + UnexpectedException = -1, + /// The number of arguments is not as expected + UnexpectedArgumentCount = -2, + /// A required argument is not present + MissingArgument = -3, + /// A specified argument contains an invalid value + InvalidArgument = -4, + /// The specified file cannot be found + FileNotFound = -5, + /// The specified file cannot be opened + CannotOpenFile = -6, + /// The specified encoding cannot be found + EncodingUnknown = -7, + /// The image format has not been recognized + UnrecognizedFormat = -8, + /// The image format failed to open + CannotOpenFormat = -9, + /// The specified metadata sidecar does not have the correct format + InvalidSidecar = -10, + /// The specified resume map does not have the correct format + InvalidResume = -11, + /// The specified destination file/folder already exists + DestinationExists = -12, + /// The specified image format cannot be found + FormatNotFound = -13, + /// More than one format found for the specified search criteria + TooManyFormats = -14, + /// The specified format does not support the specified media + UnsupportedMedia = -15, + /// Data will be lost writing the specified format + DataWillBeLost = -16, + /// Cannot create destination format + CannotCreateFormat = -17, + /// Error writing data + WriteError = -18, + /// Argument expected a directory, but found a file + ExpectedDirectory = -19, + /// Argument expected a file, but found a directory + ExpectedFile = -20, + /// Cannot open device + CannotOpenDevice = -21, + /// The specified operation requires administrative privileges + NotEnoughPermissions = -22, + /// Cannot remove the existing database + CannotRemoveDatabase = -23 } } \ No newline at end of file