Source code for eda_report.exceptions
[docs]
class InputError(Error):
"""*Exception* raised when a given input object is *not of the expected
type* or is otherwise *invalid*.
In most cases, an attempt is made to cast the erroneous input into the
proper type, and this *Exception* is raised if it fails.
Args:
message (str): A brief description of the mishap detected.
"""
def __init__(self, message: str) -> None:
self.message = message
[docs]
class EmptyDataError(InputError):
"""*Exception* raised when an iterable input object has length zero or has
no more items to yield.
"""
pass
[docs]
class GroupbyVariableError(InputError):
"""*Exception* raised when the specified group-by variable is invalid."""
pass