File: //lib/python3/dist-packages/pytz/__pycache__/exceptions.cpython-312.pyc
�
    ���e#  �                   �   � d Z g d�Z G d� de�      Z G d� dee�      Z G d� de�      Z G d� d	e�      Z G d
� de�      Zy)
z#
Custom exceptions raised by pytz.
)�UnknownTimeZoneError�InvalidTimeError�AmbiguousTimeError�NonExistentTimeErrorc                   �   � e Zd ZdZy)�Errorz8Base class for all exceptions raised by the pytz libraryN��__name__�
__module__�__qualname__�__doc__� �    �1/usr/lib/python3/dist-packages/pytz/exceptions.pyr   r      s   � �Br   r   c                   �   � e Zd ZdZy)r   a�  Exception raised when pytz is passed an unknown timezone.
    >>> isinstance(UnknownTimeZoneError(), LookupError)
    True
    This class is actually a subclass of KeyError to provide backwards
    compatibility with code relying on the undocumented behavior of earlier
    pytz releases.
    >>> isinstance(UnknownTimeZoneError(), KeyError)
    True
    And also a subclass of pytz.exceptions.Error, as are other pytz
    exceptions.
    >>> isinstance(UnknownTimeZoneError(), Error)
    True
    Nr   r
   r   r   r   r      s   � ��&