summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/polyfactory/exceptions.py
blob: 53f1271a1ba7068d4affd6f103fdd592b2674004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"""