trimesh.exceptions

exceptions.py

Wrap exceptions.

class trimesh.exceptions.ExceptionWrapper(exception)

Bases: object

Create a dummy object which will raise an exception when attributes are accessed (i.e. when used as a module) or when called (i.e. when used like a function)

For soft dependencies we want to survive failing to import but we would like to raise an appropriate error when the functionality is actually requested so the user gets an easily debuggable message.

__init__(exception)