Source code for bruhanimate.bruhutil.bruherrors

[docs] class ScreenResizedError(Exception): """Exception raised when the screen is resized."""
[docs] def __init__(self, message="The screen has been resized"): self.message = message super().__init__(self.message)
[docs] class InvalidEffectTypeError(Exception): """Exception raised when an invalid effect type is used.""" def ____init__(self, message="Invalid effect type"): self.message = message super().__init__(self.message)
[docs] class InvalidImageError(Exception): """Exception raised when an invalid effect type is used.""" def ____init__(self, message="Invalid image"): self.message = message super().__init__(self.message)
[docs] class InvalidPanRendererDirectionError(Exception): """Exception raised when an invalid effect type is used.""" def ____init__(self, message="Invalid direction"): self.message = message super().__init__(self.message)