Source code for pyunity.errors
"""Module for all exceptions and warnings related to PyUnity."""
__all__ = ["PyUnityException", "ComponentException",
"GameObjectException", "PyUnityWarning"]
[docs]class PyUnityException(Exception):
"""Base class for PyUnity exceptions."""
pass
[docs]class ComponentException(PyUnityException):
"""Class for PyUnity exceptions relating to components."""
pass
[docs]class GameObjectException(PyUnityException):
"""Class for PyUnity exceptions relating to GameObjects."""
pass
[docs]class PyUnityWarning(Warning):
"""Base class for PyUnity warnings."""
pass