
    b_	                         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
y)z'
Exception Classes for the xdg package
Fc                       e Zd ZdZd Zd Zy)Errorz'Base class for exceptions defined here.c                 >    || _         t        j                  | |       y N)msg	Exception__init__)selfr   s     .lib/python3.12/site-packages/xdg/Exceptions.pyr   zError.__init__	   s    4%    c                     | j                   S r   )r   )r	   s    r
   __str__zError.__str__   s    xxr   N)__name__
__module____qualname____doc__r   r    r   r
   r   r      s    1&r   r   c                       e Zd ZdZd Zy)ValidationErrorzXRaised when a file fails to validate.
    
    The filename is the .file attribute.
    c                 Z    || _         || _        t        j                  | d|d|d       y )NzValidationError in file 'z':  r   filer   r   r	   r   r   s      r
   r   zValidationError.__init__   s#    	tD#NOr   Nr   r   r   r   r   r   r   r
   r   r      s    Pr   r   c                       e Zd ZdZd Zy)ParsingErrorzWRaised when a file cannot be parsed.
    
    The filename is the .file attribute.
    c                 X    || _         || _        t        j                  | d|d|       y )NzParsingError in file 'z', r   r   s      r
   r   zParsingError.__init__   s#    	tcJKr   Nr   r   r   r
   r   r      s    Lr   r   c                       e Zd ZdZd Zy)
NoKeyErrorzyRaised when trying to access a nonexistant key in an INI-style file.
    
    Attributes are .key, .group and .file.
    c           	      l    t         j                  | d|d|d|       || _        || _        || _        y )NzNo key '' in group 	 of file r   r   keygroupr   r	   r$   r%   r   s       r
   r   zNoKeyError.__init__(   s-    tS%QUVW
	r   Nr   r   r   r
   r   r   #       r   r   c                       e Zd ZdZd Zy)DuplicateKeyErrorzpRaised when the same key occurs twice in an INI-style file.
    
    Attributes are .key, .group and .file.
    c           	      l    t         j                  | d|d|d|       || _        || _        || _        y )NzDuplicate key 'r!   r"   r#   r&   s       r
   r   zDuplicateKeyError.__init__3   s.    tCQVX\]^
	r   Nr   r   r   r
   r)   r)   .   r'   r   r)   c                       e Zd ZdZd Zy)NoGroupErrorzuRaised when trying to access a nonexistant group in an INI-style file.
    
    Attributes are .group and .file.
    c                 X    t         j                  | d|d|       || _        || _        y )Nz
No group: 	 in file r   r   r%   r   r	   r%   r   s      r
   r   zNoGroupError.__init__>   s#    t%FG
	r   Nr   r   r   r
   r,   r,   9       r   r,   c                       e Zd ZdZd Zy)DuplicateGroupErrorzjRaised when the same key occurs twice in an INI-style file.
    
    Attributes are .group and .file.
    c                 X    t         j                  | d|d|       || _        || _        y )NzDuplicate group: r.   r/   r0   s      r
   r   zDuplicateGroupError.__init__H   s#    tMN
	r   Nr   r   r   r
   r3   r3   C   r1   r   r3   c                       e Zd ZdZd Zy)NoThemeErrorzsRaised when trying to access a nonexistant icon theme.
    
    The name of the theme is the .theme attribute.
    c                 D    t         j                  | d|z         || _        y )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:      su    	I Pe PL5 L	 		 	5 % 5 r   