summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/polyfactory/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/polyfactory/exceptions.py')
-rw-r--r--venv/lib/python3.11/site-packages/polyfactory/exceptions.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/polyfactory/exceptions.py b/venv/lib/python3.11/site-packages/polyfactory/exceptions.py
new file mode 100644
index 0000000..53f1271
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/polyfactory/exceptions.py
@@ -0,0 +1,18 @@
+class FactoryException(Exception):
+ """Base Factory error class"""
+
+
+class ConfigurationException(FactoryException):
+ """Configuration Error class - used for misconfiguration"""
+
+
+class ParameterException(FactoryException):
+ """Parameter exception - used when wrong parameters are used"""
+
+
+class MissingBuildKwargException(FactoryException):
+ """Missing Build Kwarg exception - used when a required build kwarg is not provided"""
+
+
+class MissingDependencyException(FactoryException, ImportError):
+ """Missing dependency exception - used when a dependency is not installed"""