Spaces:
Sleeping
Sleeping
File size: 598 Bytes
2d876d1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
"""Module contains exceptions that will be raised by `InquirerPy`."""
class InvalidArgument(Exception):
"""Provided argument is invalid.
Args:
message: Exception message.
"""
def __init__(self, message: str = "invalid argument"):
self._message = message
super().__init__(self._message)
class RequiredKeyNotFound(Exception):
"""Missing required keys in dictionary.
Args:
message: Exception message.
"""
def __init__(self, message="required key not found"):
self.message = message
super().__init__(self.message)
|