summaryrefslogtreecommitdiff
path: root/lib/py/src
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2014-05-03 00:49:05 +0200
committerJens Geyer <jensg@apache.org>2014-05-03 00:49:05 +0200
commit6d1a83aa485ed9c3644d3200555700070547bf90 (patch)
tree016f0223385b3182ea76e71c14506af97b69d71b /lib/py/src
parent72e9c375175ff05a9b9cd61c9937db0bd48742ac (diff)
downloadthrift-6d1a83aa485ed9c3644d3200555700070547bf90.tar.gz
THRIFT-2506 Update TProtocolException error codes to be used consistently throughout the library
Patch: Jens Geyer
Diffstat (limited to 'lib/py/src')
-rw-r--r--lib/py/src/protocol/TProtocol.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/py/src/protocol/TProtocol.py b/lib/py/src/protocol/TProtocol.py
index dc2b095de..40e05b10d 100644
--- a/lib/py/src/protocol/TProtocol.py
+++ b/lib/py/src/protocol/TProtocol.py
@@ -28,6 +28,8 @@ class TProtocolException(TException):
NEGATIVE_SIZE = 2
SIZE_LIMIT = 3
BAD_VERSION = 4
+ NOT_IMPLEMENTED = 5
+ DEPTH_LIMIT = 6
def __init__(self, type=UNKNOWN, message=None):
TException.__init__(self, message)