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 game object
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 game object that
is not allowed by another component on that game object.
"""
pass