Skip to content

Exception

dotflow.core.exception.TaskError

Source code in dotflow/core/exception.py
93
94
95
96
97
98
class TaskError:
    def __init__(self, error: Exception = None, attempt: int = None) -> None:
        self.attempt = attempt
        self.exception = type(error).__name__ if error else ""
        self.traceback = traceback_error(error=error) if error else ""
        self.message = message_error(error=error) if error else ""

attempt = attempt instance-attribute

exception = type(error).__name__ if error else '' instance-attribute

message = message_error(error=error) if error else '' instance-attribute

traceback = traceback_error(error=error) if error else '' instance-attribute

__init__(error=None, attempt=None)

Source code in dotflow/core/exception.py
94
95
96
97
98
def __init__(self, error: Exception = None, attempt: int = None) -> None:
    self.attempt = attempt
    self.exception = type(error).__name__ if error else ""
    self.traceback = traceback_error(error=error) if error else ""
    self.message = message_error(error=error) if error else ""

dotflow.core.exception.MissingActionDecorator

Bases: Exception

Source code in dotflow/core/exception.py
34
35
36
class MissingActionDecorator(Exception):
    def __init__(self):
        super().__init__(MESSAGE_MISSING_STEP_DECORATOR)

__init__()

Source code in dotflow/core/exception.py
35
36
def __init__(self):
    super().__init__(MESSAGE_MISSING_STEP_DECORATOR)

dotflow.core.exception.ExecutionModeNotExist

Bases: Exception

Source code in dotflow/core/exception.py
39
40
41
class ExecutionModeNotExist(Exception):
    def __init__(self):
        super().__init__(MESSAGE_EXECUTION_NOT_EXIST)

__init__()

Source code in dotflow/core/exception.py
40
41
def __init__(self):
    super().__init__(MESSAGE_EXECUTION_NOT_EXIST)

dotflow.core.exception.ImportModuleError

Bases: Exception

Source code in dotflow/core/exception.py
44
45
46
class ImportModuleError(Exception):
    def __init__(self, module: str):
        super().__init__(MESSAGE_IMPORT_MODULE_ERROR.format(module=module))

__init__(module)

Source code in dotflow/core/exception.py
45
46
def __init__(self, module: str):
    super().__init__(MESSAGE_IMPORT_MODULE_ERROR.format(module=module))

dotflow.core.exception.NotCallableObject

Bases: Exception

Source code in dotflow/core/exception.py
49
50
51
class NotCallableObject(Exception):
    def __init__(self, name: str):
        super().__init__(MESSAGE_NOT_CALLABLE_OBJECT.format(name=name))

__init__(name)

Source code in dotflow/core/exception.py
50
51
def __init__(self, name: str):
    super().__init__(MESSAGE_NOT_CALLABLE_OBJECT.format(name=name))

dotflow.core.exception.ProblemOrdering

Bases: Exception

Source code in dotflow/core/exception.py
54
55
56
class ProblemOrdering(Exception):
    def __init__(self, name: str):
        super().__init__(MESSAGE_PROBLEM_ORDERING.format(name=name))

__init__(name)

Source code in dotflow/core/exception.py
55
56
def __init__(self, name: str):
    super().__init__(MESSAGE_PROBLEM_ORDERING.format(name=name))

dotflow.core.exception.InvalidWorkflowFactory

Bases: Exception

Source code in dotflow/core/exception.py
66
67
68
69
70
class InvalidWorkflowFactory(Exception):
    def __init__(self, factory: str):
        super().__init__(
            MESSAGE_INVALID_WORKFLOW_FACTORY.format(factory=factory)
        )

__init__(factory)

Source code in dotflow/core/exception.py
67
68
69
70
def __init__(self, factory: str):
    super().__init__(
        MESSAGE_INVALID_WORKFLOW_FACTORY.format(factory=factory)
    )

dotflow.core.exception.WorkflowFlagConflict

Bases: Exception

Source code in dotflow/core/exception.py
73
74
75
class WorkflowFlagConflict(Exception):
    def __init__(self, flag: str):
        super().__init__(MESSAGE_WORKFLOW_FLAG_CONFLICT.format(flag=flag))

__init__(flag)

Source code in dotflow/core/exception.py
74
75
def __init__(self, flag: str):
    super().__init__(MESSAGE_WORKFLOW_FLAG_CONFLICT.format(flag=flag))