Module glasswall.determine_file_type.errors
Expand source code
from glasswall.determine_file_type.classes import FileTypeEnumError
class UnknownErrorCode(FileTypeEnumError):
""" Unknown error code. """
pass
# The default when we don't know or can't determine the file type.
class ft_unknown(FileTypeEnumError):
integer = 0
string = "unknown"
# Not related to filetypes, but these are required since they give information when something goes wrong.
class ft_fileIssues(FileTypeEnumError):
integer = 1
string = "fileIssues"
class ft_bufferIssues(FileTypeEnumError):
integer = 2
string = "bufferIssues"
class ft_internalIssues(FileTypeEnumError):
integer = 3
string = "internalIssues"
class ft_licenseExpired(FileTypeEnumError):
integer = 4
string = "licenseExpired"
class ft_passwordProtectedOpcFile(FileTypeEnumError):
integer = 5
string = "passwordProtectedOpcFile"
class ft_nullPointerArgument(FileTypeEnumError):
integer = 6
string = "nullPointerArgument"
Classes
class UnknownErrorCode (*args, **kwargs)
-
Unknown error code.
Expand source code
class UnknownErrorCode(FileTypeEnumError): """ Unknown error code. """ pass
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
class ft_bufferIssues (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_bufferIssues(FileTypeEnumError): integer = 2 string = "bufferIssues"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string
class ft_fileIssues (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_fileIssues(FileTypeEnumError): integer = 1 string = "fileIssues"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string
class ft_internalIssues (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_internalIssues(FileTypeEnumError): integer = 3 string = "internalIssues"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string
class ft_licenseExpired (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_licenseExpired(FileTypeEnumError): integer = 4 string = "licenseExpired"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string
class ft_nullPointerArgument (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_nullPointerArgument(FileTypeEnumError): integer = 6 string = "nullPointerArgument"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string
class ft_passwordProtectedOpcFile (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_passwordProtectedOpcFile(FileTypeEnumError): integer = 5 string = "passwordProtectedOpcFile"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string
class ft_unknown (*args, **kwargs)
-
Enumerations that correspond to an error.
Expand source code
class ft_unknown(FileTypeEnumError): integer = 0 string = "unknown"
Ancestors
- FileTypeEnumError
- FileTypeEnum
- builtins.Exception
- builtins.BaseException
Class variables
var integer
var string