blob: 4e61a72160cbbe6c6e2d2bad1be9c2143b9e6a9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""Data-specific exceptions/errors."""
class DataError(Exception):
"""Generic data error. You probably shouldn't use this."""
description: str = "Generic data error."
class NotFoundError(DataError):
"""Data was not found."""
description: str = "Specified data was not found."
class TooManyResultsError(DataError):
"""More results than expected were found."""
description: str = "Too many results found."
|