fastflowtransform.errors¶
FastFlowTransformError ¶
Bases: Exception
Base class for all FastFlowTransform errors.
Attributes:
| Name | Type | Description |
|---|---|---|
message |
Human-readable error message. |
|
code |
Optional short error code (e.g., 'CFG001', 'DAG002'). |
|
hint |
Optional human hint with remediation steps. |
Source code in src/fastflowtransform/errors.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
DependencyNotFoundError ¶
Bases: FastFlowTransformError
Raised when a model depends on another model that does not exist.
Source code in src/fastflowtransform/errors.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
ModelCycleError ¶
Bases: FastFlowTransformError
Raised when a cycle is detected in the model DAG.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
affected_nodes
|
Iterable[str]
|
Nodes that couldn't be ordered due to the cycle. |
required |
Source code in src/fastflowtransform/errors.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
ModuleLoadError ¶
Bases: FastFlowTransformError
Raised when a Python model module cannot be loaded.
Source code in src/fastflowtransform/errors.py
75 76 77 78 | |
ModelConfigError ¶
Bases: FastFlowTransformError
Raised when a model's {{ config(...) }} (or @model(meta=...)) is malformed or fails schema validation.
Typical causes
- Syntax errors in the config(...) header
- Non-literal expressions in values (must be JSON/Python literals)
- Unknown/forbidden keys
- Wrong types for documented fields
Source code in src/fastflowtransform/errors.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
ProfileConfigError ¶
Bases: FastFlowTransformError
Profile/configuration error with a short, actionable hint.
Source code in src/fastflowtransform/errors.py
109 110 111 112 113 114 | |
ContractsConfigError ¶
Bases: FastFlowTransformError
Raised when a contracts.yml (project-level or per-table) is malformed.
Source code in src/fastflowtransform/errors.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
ModelExecutionError ¶
Bases: Exception
Raised when a model fails to execute/render on the engine. Carries friendly context for CLI formatting.
Source code in src/fastflowtransform/errors.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |