File: exceptions.py

package info (click to toggle)
python-polyfactory 2.22.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,892 kB
  • sloc: python: 11,338; makefile: 103; sh: 37
file content (18 lines) | stat: -rw-r--r-- 591 bytes parent folder | download
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"""