glasswall.determine_file_type.errors
1from glasswall.determine_file_type.classes import FileTypeEnumError 2 3 4class UnknownErrorCode(FileTypeEnumError): 5 """ Unknown error code. """ 6 pass 7 8 9# The default when we don't know or can't determine the file type. 10class ft_unknown(FileTypeEnumError): 11 integer = 0 12 string = "unknown" 13 14 15# Not related to filetypes, but these are required since they give information when something goes wrong. 16class ft_fileIssues(FileTypeEnumError): 17 integer = 1 18 string = "fileIssues" 19 20 21class ft_bufferIssues(FileTypeEnumError): 22 integer = 2 23 string = "bufferIssues" 24 25 26class ft_internalIssues(FileTypeEnumError): 27 integer = 3 28 string = "internalIssues" 29 30 31class ft_licenseExpired(FileTypeEnumError): 32 integer = 4 33 string = "licenseExpired" 34 35 36class ft_passwordProtectedOpcFile(FileTypeEnumError): 37 integer = 5 38 string = "passwordProtectedOpcFile" 39 40 41class ft_nullPointerArgument(FileTypeEnumError): 42 integer = 6 43 string = "nullPointerArgument" 44 45 46class ft_unsupportedFileType(FileTypeEnumError): 47 integer = 7 48 string = "unsupportedFileType"
Unknown error code.
Enumerations that correspond to an error.
Enumerations that correspond to an error.
Enumerations that correspond to an error.
Enumerations that correspond to an error.
Enumerations that correspond to an error.
39class ft_passwordProtectedOpcFile(FileTypeEnumError): 40 integer = 5 41 string = "passwordProtectedOpcFile"
Enumerations that correspond to an error.
Enumerations that correspond to an error.
Enumerations that correspond to an error.