Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/faker/exceptions.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2023-07-17 14:22 -0600

1class BaseFakerException(Exception): 

2 """The base exception for all Faker exceptions.""" 

3 

4 

5class UniquenessException(BaseFakerException): 

6 """To avoid infinite loops, after a certain number of attempts, 

7 the "unique" attribute of the Proxy will throw this exception. 

8 """ 

9 

10 

11class UnsupportedFeature(BaseFakerException): 

12 """The requested feature is not available on this system.""" 

13 

14 def __init__(self, msg: str, name: str) -> None: 

15 self.name = name 

16 super().__init__(msg)