trimesh.exceptions
exceptions.py
Handle things related to exceptions.
- class trimesh.exceptions.ExceptionModule(exc)
Bases:
object
Create a dummy module which will raise an exception when attributes are accessed.
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__(exc)
- trimesh.exceptions.closure(exc)
Return a function which will accept any arguments but raise the exception when called.
- Parameters
exc (Exception) – Will be raised later
- Returns
failed – When called will raise exc
- Return type
function