python (3.11.7)

(root)/
lib/
python3.11/
site-packages/
pip/
_vendor/
msgpack/
exceptions.py
       1  class ESC[4;38;5;81mUnpackException(ESC[4;38;5;149mException):
       2      """Base class for some exceptions raised while unpacking.
       3  
       4      NOTE: unpack may raise exception other than subclass of
       5      UnpackException.  If you want to catch all error, catch
       6      Exception instead.
       7      """
       8  
       9  
      10  class ESC[4;38;5;81mBufferFull(ESC[4;38;5;149mUnpackException):
      11      pass
      12  
      13  
      14  class ESC[4;38;5;81mOutOfData(ESC[4;38;5;149mUnpackException):
      15      pass
      16  
      17  
      18  class ESC[4;38;5;81mFormatError(ESC[4;38;5;149mValueError, ESC[4;38;5;149mUnpackException):
      19      """Invalid msgpack format"""
      20  
      21  
      22  class ESC[4;38;5;81mStackError(ESC[4;38;5;149mValueError, ESC[4;38;5;149mUnpackException):
      23      """Too nested"""
      24  
      25  
      26  # Deprecated.  Use ValueError instead
      27  UnpackValueError = ValueError
      28  
      29  
      30  class ESC[4;38;5;81mExtraData(ESC[4;38;5;149mUnpackValueError):
      31      """ExtraData is raised when there is trailing data.
      32  
      33      This exception is raised while only one-shot (not streaming)
      34      unpack.
      35      """
      36  
      37      def __init__(self, unpacked, extra):
      38          self.unpacked = unpacked
      39          self.extra = extra
      40  
      41      def __str__(self):
      42          return "unpack(b) received extra data."
      43  
      44  
      45  # Deprecated.  Use Exception instead to catch all exception during packing.
      46  PackException = Exception
      47  PackValueError = ValueError
      48  PackOverflowError = OverflowError