blob: 5aa03987ce1a4243de16fc92f5e076a52a2d75e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
|