diff options
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/exceptions.py')
-rw-r--r-- | venv/lib/python3.11/site-packages/faker/exceptions.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/exceptions.py b/venv/lib/python3.11/site-packages/faker/exceptions.py new file mode 100644 index 0000000..5aa0398 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/exceptions.py @@ -0,0 +1,16 @@ +class BaseFakerException(Exception): + """The base exception for all Faker exceptions.""" + + +class UniquenessException(BaseFakerException): + """To avoid infinite loops, after a certain number of attempts, + the "unique" attribute of the Proxy will throw this exception. + """ + + +class UnsupportedFeature(BaseFakerException): + """The requested feature is not available on this system.""" + + def __init__(self, msg: str, name: str) -> None: + self.name = name + super().__init__(msg) |