mirror of
https://github.com/hoshikawa2/first_contas.git
synced 2026-07-09 18:24:20 +00:00
first commit
This commit is contained in:
25
legacy_reference/workflows/exceptions.py
Normal file
25
legacy_reference/workflows/exceptions.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class WorkflowError(Exception):
|
||||
"""Erro base dos workflows configuráveis."""
|
||||
|
||||
|
||||
class WorkflowConfigurationError(WorkflowError):
|
||||
"""Erro de configuração do workflow (arquivo/schema inválido)."""
|
||||
|
||||
|
||||
class WorkflowNotFoundError(WorkflowError):
|
||||
"""Workflow não encontrado no repositório."""
|
||||
|
||||
|
||||
class WorkflowExecutionNotFoundError(WorkflowError):
|
||||
"""Execução de workflow inexistente para o execution_id informado."""
|
||||
|
||||
|
||||
class WorkflowExecutionStateError(WorkflowError):
|
||||
"""Estado da execução não permite a operação solicitada."""
|
||||
|
||||
|
||||
class WorkflowInputError(WorkflowError):
|
||||
"""Input inválido durante a execução/retomada do workflow."""
|
||||
Reference in New Issue
Block a user