
    |`                     n    d Z ddlmZmZmZmZ ddlmZ  G d de	      Z
 G d de
      Z G d d	e
      Zy
)zH
This module provides the exception hierarchy used by the imdb package.
    )absolute_importdivisionprint_functionunicode_literals)imdbpyLoggerc                       e Zd ZdZd Zy)	IMDbErrorz:Base class for every exception raised by the imdb package.c                     t        j                  d| j                  j                  ||d       t	        j
                  | g|i | y)z@Initialize the exception and pass the message to the log system.z'%s exception raised; args: %s; kwds: %sT)exc_infoN)loggercritical	__class____name__	Exception__init__)selfargskwargss      2/usr/lib/python3/dist-packages/imdb/_exceptions.pyr   zIMDbError.__init__   s@     	5NN##T6D	
 	41$1&1    N)r   
__module____qualname____doc__r    r   r   r	   r	      s
    D2r   r	   c                       e Zd ZdZy)IMDbDataAccessErrorz<Exception raised when is not possible to access needed data.Nr   r   r   r   r   r   r   r   r   '   s    Fr   r   c                       e Zd ZdZy)IMDbParserErrorz9Exception raised when an error occurred parsing the data.Nr   r   r   r   r   r   ,   s    Cr   r   N)r   
__future__r   r   r   r   imdb._loggingr   r   r   r	   r   r   r   r   r   <module>r"      s:   " S R 0
2	 
2	) 	
	i 	r   