
    uc	                         d Z dZ G d de          Z G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d de          Z G d de          Z	 G d de          Z
dS )z'
Exception Classes for the xdg package
Fc                       e Zd ZdZd Zd ZdS )Errorz'Base class for exceptions defined here.c                 J    || _         t                              | |           d S N)msg	Exception__init__)selfr   s     0/usr/lib/python3/dist-packages/xdg/Exceptions.pyr   zError.__init__	   s%    4%%%%%    c                     | j         S r   )r   )r	   s    r
   __str__zError.__str__   s	    xr   N)__name__
__module____qualname____doc__r   r    r   r
   r   r      s8        11& & &    r   r   c                       e Zd ZdZd ZdS )ValidationErrorzXRaised when a file fails to validate.
    
    The filename is the .file attribute.
    c                 f    || _         || _        t                              | d|d|d           d S )NzValidationError in file 'z':  r   filer   r   r	   r   r   s      r
   r   zValidationError.__init__   s9    	ttDDD###NOOOOOr   Nr   r   r   r   r   r   r   r
   r   r      s2         P P P P Pr   r   c                       e Zd ZdZd ZdS )ParsingErrorzWRaised when a file cannot be parsed.
    
    The filename is the .file attribute.
    c                 d    || _         || _        t                              | d|d|           d S )NzParsingError in file 'z', r   r   s      r
   r   zParsingError.__init__   s7    	ttccJKKKKKr   Nr   r   r   r
   r   r      s2         L L L L Lr   r   c                       e Zd ZdZd ZdS )
NoKeyErrorzyRaised when trying to access a nonexistant key in an INI-style file.
    
    Attributes are .key, .group and .file.
    c           	      x    t                               | d|d|d|           || _        || _        || _        d S )NzNo key '' in group 	 of file r   r   keygroupr   r	   r$   r%   r   s       r
   r   zNoKeyError.__init__(   sD    ttSSS%%%QUQUVWWW
			r   Nr   r   r   r
   r   r   #   -             r   r   c                       e Zd ZdZd ZdS )DuplicateKeyErrorzpRaised when the same key occurs twice in an INI-style file.
    
    Attributes are .key, .group and .file.
    c           	      x    t                               | d|d|d|           || _        || _        || _        d S )NzDuplicate key 'r!   r"   r#   r&   s       r
   r   zDuplicateKeyError.__init__3   sG    ttCCCQVQVQVX\X\]^^^
			r   Nr   r   r   r
   r)   r)   .   r'   r   r)   c                       e Zd ZdZd ZdS )NoGroupErrorzuRaised when trying to access a nonexistant group in an INI-style file.
    
    Attributes are .group and .file.
    c                 d    t                               | d|d|           || _        || _        d S )Nz
No group: 	 in file r   r   r%   r   r	   r%   r   s      r
   r   zNoGroupError.__init__>   s5    tt%%%FGGG
			r   Nr   r   r   r
   r,   r,   9   -             r   r,   c                       e Zd ZdZd ZdS )DuplicateGroupErrorzjRaised when the same key occurs twice in an INI-style file.
    
    Attributes are .group and .file.
    c                 d    t                               | d|d|           || _        || _        d S )NzDuplicate group: r.   r/   r0   s      r
   r   zDuplicateGroupError.__init__H   s5    ttMNNN
			r   Nr   r   r   r
   r3   r3   C   r1   r   r3   c                       e Zd ZdZd ZdS )NoThemeErrorzsRaised when trying to access a nonexistant icon theme.
    
    The name of the theme is the .theme attribute.
    c                 P    t                               | d|z             || _        d S )NzNo such icon-theme: %s)r   r   theme)r	   r8   s     r
   r   zNoThemeError.__init__R   s'    t5=>>>


r   Nr   r   r   r
   r6   r6   M   s-             r   r6   N)r   debugr   r   r   r   r   r)   r,   r3   r6   r   r   r
   <module>r:      s    	    I   P P P P Pe P P PL L L L L5 L L L	 	 	 	 	 	 	 		 	 	 	 	 	 	 	    5       %       5     r   