Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
e200ed35
Commit
e200ed35
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
0152210a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
exceptions.py
stbi/Lib/site-packages/pip/_vendor/msgpack/exceptions.py
+48
-0
No files found.
stbi/Lib/site-packages/pip/_vendor/msgpack/exceptions.py
0 → 100644
View file @
e200ed35
class
UnpackException
(
Exception
):
"""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.
"""
class
BufferFull
(
UnpackException
):
pass
class
OutOfData
(
UnpackException
):
pass
class
FormatError
(
ValueError
,
UnpackException
):
"""Invalid msgpack format"""
class
StackError
(
ValueError
,
UnpackException
):
"""Too nested"""
# Deprecated. Use ValueError instead
UnpackValueError
=
ValueError
class
ExtraData
(
UnpackValueError
):
"""ExtraData is raised when there is trailing data.
This exception is raised while only one-shot (not streaming)
unpack.
"""
def
__init__
(
self
,
unpacked
,
extra
):
self
.
unpacked
=
unpacked
self
.
extra
=
extra
def
__str__
(
self
):
return
"unpack(b) received extra data."
# Deprecated. Use Exception instead to catch all exception during packing.
PackException
=
Exception
PackValueError
=
ValueError
PackOverflowError
=
OverflowError
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment