mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Add option to recreate databases from scratch.
This commit is contained in:
@@ -42,39 +42,74 @@ namespace DiscImageChef.CommonTypes.Enums
|
||||
public enum ErrorNumber
|
||||
{
|
||||
/// <summary>No error</summary>
|
||||
NoError = 0, /// <summary>User requested help to be shown</summary>
|
||||
HelpRequested = 1, /// <summary>Command found nothing</summary>
|
||||
NothingFound = 2, /// <summary>Media has been already dumped completely</summary>
|
||||
AlreadyDumped = 3, /// <summary>Image and its sectors cannot be verified</summary>
|
||||
NotVerificable = 4, /// <summary>There are bad sectors and image cannot be verified</summary>
|
||||
BadSectorsImageNotVerified = 5, /// <summary>All sectors are good and image cannot be verified</summary>
|
||||
CorrectSectorsImageNotVerified = 6, /// <summary>Image is bad and sectors cannot be verified</summary>
|
||||
BadImageSectorsNotVerified = 7, /// <summary>Image is bad and there are bad sectors</summary>
|
||||
BadImageBadSectors = 8, /// <summary>All sectors are good and image is bad</summary>
|
||||
CorrectSectorsBadImage = 9, /// <summary>Image is good and sectors cannot be verified</summary>
|
||||
CorrectImageSectorsNotVerified = 10, /// <summary>Image is good and there are bad sectors</summary>
|
||||
CorrectImageBadSectors = 11, /// <summary>Exception has been raised</summary>
|
||||
UnexpectedException = -1, /// <summary>The number of arguments is not as expected</summary>
|
||||
UnexpectedArgumentCount = -2, /// <summary>A required argument is not present</summary>
|
||||
MissingArgument = -3, /// <summary>A specified argument contains an invalid value</summary>
|
||||
InvalidArgument = -4, /// <summary>The specified file cannot be found</summary>
|
||||
FileNotFound = -5, /// <summary>The specified file cannot be opened</summary>
|
||||
CannotOpenFile = -6, /// <summary>The specified encoding cannot be found</summary>
|
||||
EncodingUnknown = -7, /// <summary>The image format has not been recognized</summary>
|
||||
UnrecognizedFormat = -8, /// <summary>The image format failed to open</summary>
|
||||
CannotOpenFormat = -9, /// <summary>The specified metadata sidecar does not have the correct format</summary>
|
||||
InvalidSidecar = -10, /// <summary>The specified resume map does not have the correct format</summary>
|
||||
InvalidResume = -11, /// <summary>The specified destination file/folder already exists</summary>
|
||||
DestinationExists = -12, /// <summary>The specified image format cannot be found</summary>
|
||||
FormatNotFound = -13, /// <summary>More than one format found for the specified search criteria</summary>
|
||||
TooManyFormats = -14, /// <summary>The specified format does not support the specified media</summary>
|
||||
UnsupportedMedia = -15, /// <summary>Data will be lost writing the specified format</summary>
|
||||
DataWillBeLost = -16, /// <summary>Cannot create destination format</summary>
|
||||
CannotCreateFormat = -17, /// <summary>Error writing data</summary>
|
||||
WriteError = -18, /// <summary>Argument expected a directory, but found a file</summary>
|
||||
ExpectedDirectory = -19, /// <summary>Argument expected a file, but found a directory</summary>
|
||||
ExpectedFile = -20, /// <summary>Cannot open device</summary>
|
||||
CannotOpenDevice = -21, /// <summary>The specified operation requires administrative privileges</summary>
|
||||
NotEnoughPermissions = -22
|
||||
NoError = 0,
|
||||
/// <summary>User requested help to be shown</summary>
|
||||
HelpRequested = 1,
|
||||
/// <summary>Command found nothing</summary>
|
||||
NothingFound = 2,
|
||||
/// <summary>Media has been already dumped completely</summary>
|
||||
AlreadyDumped = 3,
|
||||
/// <summary>Image and its sectors cannot be verified</summary>
|
||||
NotVerificable = 4,
|
||||
/// <summary>There are bad sectors and image cannot be verified</summary>
|
||||
BadSectorsImageNotVerified = 5,
|
||||
/// <summary>All sectors are good and image cannot be verified</summary>
|
||||
CorrectSectorsImageNotVerified = 6,
|
||||
/// <summary>Image is bad and sectors cannot be verified</summary>
|
||||
BadImageSectorsNotVerified = 7,
|
||||
/// <summary>Image is bad and there are bad sectors</summary>
|
||||
BadImageBadSectors = 8,
|
||||
/// <summary>All sectors are good and image is bad</summary>
|
||||
CorrectSectorsBadImage = 9,
|
||||
/// <summary>Image is good and sectors cannot be verified</summary>
|
||||
CorrectImageSectorsNotVerified = 10,
|
||||
/// <summary>Image is good and there are bad sectors</summary>
|
||||
CorrectImageBadSectors = 11,
|
||||
/// <summary>Exception has been raised</summary>
|
||||
UnexpectedException = -1,
|
||||
/// <summary>The number of arguments is not as expected</summary>
|
||||
UnexpectedArgumentCount = -2,
|
||||
/// <summary>A required argument is not present</summary>
|
||||
MissingArgument = -3,
|
||||
/// <summary>A specified argument contains an invalid value</summary>
|
||||
InvalidArgument = -4,
|
||||
/// <summary>The specified file cannot be found</summary>
|
||||
FileNotFound = -5,
|
||||
/// <summary>The specified file cannot be opened</summary>
|
||||
CannotOpenFile = -6,
|
||||
/// <summary>The specified encoding cannot be found</summary>
|
||||
EncodingUnknown = -7,
|
||||
/// <summary>The image format has not been recognized</summary>
|
||||
UnrecognizedFormat = -8,
|
||||
/// <summary>The image format failed to open</summary>
|
||||
CannotOpenFormat = -9,
|
||||
/// <summary>The specified metadata sidecar does not have the correct format</summary>
|
||||
InvalidSidecar = -10,
|
||||
/// <summary>The specified resume map does not have the correct format</summary>
|
||||
InvalidResume = -11,
|
||||
/// <summary>The specified destination file/folder already exists</summary>
|
||||
DestinationExists = -12,
|
||||
/// <summary>The specified image format cannot be found</summary>
|
||||
FormatNotFound = -13,
|
||||
/// <summary>More than one format found for the specified search criteria</summary>
|
||||
TooManyFormats = -14,
|
||||
/// <summary>The specified format does not support the specified media</summary>
|
||||
UnsupportedMedia = -15,
|
||||
/// <summary>Data will be lost writing the specified format</summary>
|
||||
DataWillBeLost = -16,
|
||||
/// <summary>Cannot create destination format</summary>
|
||||
CannotCreateFormat = -17,
|
||||
/// <summary>Error writing data</summary>
|
||||
WriteError = -18,
|
||||
/// <summary>Argument expected a directory, but found a file</summary>
|
||||
ExpectedDirectory = -19,
|
||||
/// <summary>Argument expected a file, but found a directory</summary>
|
||||
ExpectedFile = -20,
|
||||
/// <summary>Cannot open device</summary>
|
||||
CannotOpenDevice = -21,
|
||||
/// <summary>The specified operation requires administrative privileges</summary>
|
||||
NotEnoughPermissions = -22,
|
||||
/// <summary>Cannot remove the existing database</summary>
|
||||
CannotRemoveDatabase = -23
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user