Module glasswall.libraries.editor.errors
Expand source code
from glasswall.libraries.editor.classes import EditorError
class UnknownErrorCode(EditorError):
""" Unknown error code. """
pass
# Statuses from sdk.editor\src\core.support\sdk.interface\gw2_returnstatus.h
class GeneralFail(EditorError):
""" Editor error code -1. """
pass
class UnexpectedEndOfFile(EditorError):
""" Editor error code -2. """
pass
class LicenseExpired(EditorError):
""" Editor error code -3. """
pass
class IncorrectSessionSetup(EditorError):
""" Editor error code -4. """
pass
class IncorrectPolicySetup(EditorError):
""" Editor error code -5. """
pass
class UnableToLoadInput(EditorError):
""" Editor error code -6. """
pass
class FileTypeUnknown(EditorError):
""" Editor error code -7. """
pass
class UnknownSessionID(EditorError):
""" Editor error code -8. """
pass
class ArgumentError(EditorError):
""" Editor error code -9. """
pass
class UnableToLoadImport(EditorError):
""" Editor error code -10. """
pass
class CameraDidNotInitialise(EditorError):
""" Editor error code -11. """
pass
class NoCamerasConnected(EditorError):
""" Editor error code -12. """
pass
class EngineeringOnlyGoesToFile(EditorError):
""" Editor error code -13. """
pass
class UnableToWriteOutput(EditorError):
""" Editor error code -14 """
pass
class UnableToWriteExport(EditorError):
""" Editor error code -15 """
pass
class FileRejected(EditorError):
""" Editor error code -16 """
pass
error_codes = {
-1: GeneralFail,
-2: UnexpectedEndOfFile,
-3: LicenseExpired,
-4: IncorrectSessionSetup,
-5: IncorrectPolicySetup,
-6: UnableToLoadInput,
-7: FileTypeUnknown,
-8: UnknownSessionID,
-9: ArgumentError,
-10: UnableToLoadImport,
-11: CameraDidNotInitialise,
-12: NoCamerasConnected,
-13: EngineeringOnlyGoesToFile,
-14: UnableToWriteOutput,
-15: UnableToWriteExport,
-16: FileRejected,
}
Classes
class ArgumentError (*args, **kwargs)
-
Editor error code -9.
Expand source code
class ArgumentError(EditorError): """ Editor error code -9. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class CameraDidNotInitialise (*args, **kwargs)
-
Editor error code -11.
Expand source code
class CameraDidNotInitialise(EditorError): """ Editor error code -11. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class EngineeringOnlyGoesToFile (*args, **kwargs)
-
Editor error code -13.
Expand source code
class EngineeringOnlyGoesToFile(EditorError): """ Editor error code -13. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class FileRejected (*args, **kwargs)
-
Editor error code -16
Expand source code
class FileRejected(EditorError): """ Editor error code -16 """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class FileTypeUnknown (*args, **kwargs)
-
Editor error code -7.
Expand source code
class FileTypeUnknown(EditorError): """ Editor error code -7. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class GeneralFail (*args, **kwargs)
-
Editor error code -1.
Expand source code
class GeneralFail(EditorError): """ Editor error code -1. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class IncorrectPolicySetup (*args, **kwargs)
-
Editor error code -5.
Expand source code
class IncorrectPolicySetup(EditorError): """ Editor error code -5. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class IncorrectSessionSetup (*args, **kwargs)
-
Editor error code -4.
Expand source code
class IncorrectSessionSetup(EditorError): """ Editor error code -4. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class LicenseExpired (*args, **kwargs)
-
Editor error code -3.
Expand source code
class LicenseExpired(EditorError): """ Editor error code -3. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class NoCamerasConnected (*args, **kwargs)
-
Editor error code -12.
Expand source code
class NoCamerasConnected(EditorError): """ Editor error code -12. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnableToLoadImport (*args, **kwargs)
-
Editor error code -10.
Expand source code
class UnableToLoadImport(EditorError): """ Editor error code -10. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnableToLoadInput (*args, **kwargs)
-
Editor error code -6.
Expand source code
class UnableToLoadInput(EditorError): """ Editor error code -6. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnableToWriteExport (*args, **kwargs)
-
Editor error code -15
Expand source code
class UnableToWriteExport(EditorError): """ Editor error code -15 """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnableToWriteOutput (*args, **kwargs)
-
Editor error code -14
Expand source code
class UnableToWriteOutput(EditorError): """ Editor error code -14 """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnexpectedEndOfFile (*args, **kwargs)
-
Editor error code -2.
Expand source code
class UnexpectedEndOfFile(EditorError): """ Editor error code -2. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnknownErrorCode (*args, **kwargs)
-
Unknown error code.
Expand source code
class UnknownErrorCode(EditorError): """ Unknown error code. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException
class UnknownSessionID (*args, **kwargs)
-
Editor error code -8.
Expand source code
class UnknownSessionID(EditorError): """ Editor error code -8. """ pass
Ancestors
- EditorError
- builtins.Exception
- builtins.BaseException