
    -i                         d Z  G d d      Zy)z2
exceptions.py
----------------

Wrap exceptions.
c                   4     e Zd ZdZdefdZ fdZd Z xZS )ExceptionWrappera  
    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.
    	exceptionc                 <    t        |      |j                  f| _        y )N)typeargsr   )selfr   s     N/mnt/e/genesis-system/.venv/lib/python3.12/site-packages/trimesh/exceptions.py__init__zExceptionWrapper.__init__   s     y/9>>:    c                 Z    |d   dk(  rd j                   S t        | 	  d      \  }} || )N    	__class__r   )r   super__getattribute__)r   r   kwargsexc_typeexc_argsr   s        r	   r   z!ExceptionWrapper.__getattribute__   s<     7k!>>! #W5kB(!!r   c                 &    | j                  d       y )Nr   )r   )r   r   r   s      r	   __call__zExceptionWrapper.__call__%   s     	k*r   )	__name__
__module____qualname____doc__BaseExceptionr
   r   r   __classcell__)r   s   @r	   r   r   	   s    ;- ;	"+r   r   N)r   r    r   r	   <module>r      s   + +r   