← Back
Editing: Exceptions.cpython-311.pyc
� �u�c� � �� � d Z dZ G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Z dS )z' Exception Classes for the xdg package Fc � � e Zd ZdZd� Zd� ZdS )�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 zError.__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 Zd ZdZd� ZdS )�ValidationErrorzXRaised when a file fails to validate. The filename is the .file attribute. c �f � || _ || _ t � | d|�d|�d�� � d S )NzValidationError in file 'z': � �r �filer r �r r r s r r zValidationError.__init__ s9 � ������ � ���t�t�D�D�D�#�#�#�N�O�O�O�O�Or N�r r r r r r r r r r s2 � � � � � �� �P� P� P� P� Pr r c � � e Zd ZdZd� ZdS )�ParsingErrorzWRaised when a file cannot be parsed. The filename is the .file attribute. c �d � || _ || _ t � | d|�d|��� � d S )NzParsingError in file 'z', r r s r r zParsingError.__init__ s7 � ������ � ���t�t����c�c�J�K�K�K�K�Kr Nr r r r r r s2 � � � � � �� �L� L� L� L� Lr r c � � e Zd ZdZd� ZdS )� 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 )NzNo key '�' in group � of file �r r �key�groupr �r r$ r% r s r r zNoKeyError.__init__( sD � � ���t�t�S�S�S�%�%�%�QU�QU�V�W�W�W������ ��� � � r Nr r r r r r # �- � � � � � �� �� � � � r r c � � e Zd ZdZd� ZdS )�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 )NzDuplicate key 'r! r"