Current File : //usr/lib/python3/dist-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-312.pyc |
�
/�g9 � � � G d � de � Z G d� de� Z G d� de� Z G d� dee� Z G d� d ee� ZeZ G d
� de� Ze Z eZ
eZy)
c � � e Zd ZdZy)�UnpackExceptionz�Base class for some exceptions raised while unpacking.
NOTE: unpack may raise exception other than subclass of
UnpackException. If you want to catch all error, catch
Exception instead.
N��__name__�
__module__�__qualname__�__doc__� � �@/usr/lib/python3/dist-packages/pip/_vendor/msgpack/exceptions.pyr r s � �r
r c � � e Zd Zy)�
BufferFullN�r r r r r
r r
r
� � �r
r
c � � e Zd Zy)� OutOfDataNr r r
r r r r r
r c � � e Zd ZdZy)�FormatErrorzInvalid msgpack formatNr r r
r r r s � � r
r c � � e Zd ZdZy)�
StackErrorz
Too nestedNr r r
r r r s � �r
r c � � e Zd ZdZd� Zd� Zy)� ExtraDataz�ExtraData is raised when there is trailing data.
This exception is raised while only one-shot (not streaming)
unpack.
c � � || _ || _ y )N)�unpacked�extra)�selfr r s r �__init__zExtraData.__init__% s � � ��
���
r
c � � y)Nzunpack(b) received extra data.r )r s r �__str__zExtraData.__str__) s � �/r
N)r r r r r r r r
r r r s � ���0r
r N)
� Exceptionr r
r �
ValueErrorr r �UnpackValueErrorr �
PackException�PackValueError�
OverflowError�PackOverflowErrorr r
r �<module>r&