3
Re9 @ sx G d d de ZG dd deZG dd deZG dd deeZG dd d eeZeZG d
d deZe Z eZ
eZdS )
c @ s e Zd ZdZdS )UnpackExceptionzBase 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__ r r /builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/msgpack/exceptions.pyr s r c @ s e Zd ZdS )
BufferFullN)r r r r r r r r
s r c @ s e Zd ZdS ) OutOfDataN)r r r r r r r r s r c @ s e Zd ZdZdS )FormatErrorzInvalid msgpack formatN)r r r r r r r r r
s r
c @ s e Zd ZdZdS )
StackErrorz
Too nestedN)r r r r r r r r r s r c @ s e Zd ZdZdd Zdd ZdS ) ExtraDatazExtraData is raised when there is trailing data.
This exception is raised while only one-shot (not streaming)
unpack.
c C s || _ || _d S )N)unpackedextra)selfr
r r r r __init__% s zExtraData.__init__c C s dS )Nzunpack(b) received extra data.r )r r r r __str__) s zExtraData.__str__N)r r r r r r r r r r r s r N)
Exceptionr r r
ValueErrorr
r UnpackValueErrorr
PackExceptionPackValueError
OverflowErrorPackOverflowErrorr r r r