Source code for rubato.utils.error
"""
Some custom errors
"""
[docs]class SideError(Exception):
"""An error that is raised when the number of sides is invalid"""
pass
[docs]class DuplicateComponentError(Exception):
"""
An error that is raised when you try to add a component to a sprite
that already has a component of the same type
"""
pass
[docs]class ComponentNotAllowed(Exception):
"""
An error that is raised when you try to add a component on a sprite that
is not allowed by another component on that sprite.
"""
pass