Source code for fortrace.utility.exceptions

"""ForTrace specific exceptions."""


[docs] class ForTraceException(Exception): """Generic ForTrace specific exception, to help differentiate from other exceptions. All other custom exceptions have to inherit this class.""" def __init__(self, *args): Exception.__init__(self, *args)
[docs] class DomainException(ForTraceException): """To be thrown when something cannot be done with a domain"""
[docs] class SetupException(ForTraceException): """To be thrown if something unexpected happens during a setup process"""
[docs] class ConfigurationError(ForTraceException): """Configuration-specific exception"""
[docs] class MultiStageAttackException(ForTraceException): """Multi-stage attack exception, thrown when something is not working during an attack"""
[docs] class ServerInteractionException(ForTraceException): """Server interaction exception, thrown when interaction with server encounters an issue"""
[docs] class DesktopEnvironmentException(ForTraceException): """To be thrown from desktop environment, if something unpredicted has happened."""
[docs] class GeneratorException(ForTraceException): """To be thrown from the Generator"""