Generateurv2/backend/env/lib/python3.10/site-packages/faker/exceptions.py

17 lines
506 B
Python
Raw Normal View History

2022-06-24 17:14:37 +02:00
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)