
     h&                         d Z  G d de          Z G d de          Z e            ZddZd Z e            	                     e                       dS )	zK
Exceptions

This module is deprecated and will be removed in joblib 0.16.
c                   "    e Zd ZdZd Zd ZeZdS )JoblibExceptionz=A simple exception with an error message that you can get to.c                 *    t          j        | g|R   d S N)	Exception__init__)selfargss     \/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/joblib/_deprecated_my_exceptions.pyr   zJoblibException.__init__   s#     	4'$''''''    c                     t          | d          r&t          | j                  dk    r| j        d         }nd}| j        j        }|ddd|ddS )Nr	        
K___________________________________________________________________________)hasattrlenr	   	__class____name__)r   messagenames      r
   __repr__zJoblibException.__repr__   s_    4   	S^^a%7%7ilGGG~&#'44777HHEEr   N)r   
__module____qualname____doc__r   r   __str__ r   r
   r   r      s<        GG( ( (F F F GGGr   r   c                        e Zd ZdZd ZddZdS )TransportableExceptionz`An exception containing all the info to wrap an original
        exception and recreate it.
    c                 Z    t                               | ||           || _        || _        d S r   )r   r   r   etype)r   r   r    s      r
   r   zTransportableException.__init__,   s.     	  w666


r   r   c                 d    |d| j         }t          | j                  d         } ||          S )Nz
---------------------------------------------------------------------------
Joblib worker traceback:
---------------------------------------------------------------------------
r   )r   _mk_exceptionr    )r   context_messagereportexception_types       r
   unwrapzTransportableException.unwrap3   s>     
$,,( 'tz2215~f%%%r   N)r   )r   r   r   r   r   r&   r   r   r
   r   r   '   sA           	& 	& 	& 	& 	& 	&r   r   Nc                 *   t          | t                    r	| | j        fS || j        }d|z  }|t          v rt          |         }nM| t          u r	t          |fS 	 t          |t          | fi           }|t          |<   n# t          $ r
 t          }Y nw xY w||fS )NzJoblib%s)
issubclassr   r   _exception_mappingr   type	TypeError)	exceptionr   	this_namethis_exceptions       r
   r"   r"   B   s    )_-- -),,, |!T!I&&&+I6	!! #I--		-!OY7= =N,:y)) 	- 	- 	-
 -NNN	- 9$$s   "A: :BBc                     t                      } dd l}t          d t          |                    }|D ]U}t	          ||          }t          |t                    r.t          |t                    rt          ||          \  }}|| |<   V| S )Nr   c                 ,    |                      d          S )NError)endswith)xs    r
   <lambda>z'_mk_common_exceptions.<locals>.<lambda>f   s    !**W%% r   )r   )
dictbuiltinsfilterdirgetattr
isinstancer*   r(   BaseExceptionr"   )	namespace_builtin_exceptionscommon_exceptionsr   objthis_objr-   s          r
   _mk_common_exceptionsrA   b   s    I****%%  " " " , ,)400c4   	,Z]%C%C 	,"/$"?"?"?Hi#+Ii r   r   )
r   r   r   r   r5   r)   r"   rA   localsupdater   r   r
   <module>rD      s        i   8& & & & &_ & & &0 TVV % % % %@  " %%'' ( ( ( ( (r   