You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
506 B

6 months ago
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)