2 using System
.Collections
.Generic
;
6 namespace Thrift
.Protocol
8 class TProtocolException
: Exception
10 public const int UNKNOWN
= 0;
11 public const int INVALID_DATA
= 1;
12 public const int NEGATIVE_SIZE
= 2;
13 public const int SIZE_LIMIT
= 3;
14 public const int BAD_VERSION
= 4;
16 protected int type_
= UNKNOWN
;
18 public TProtocolException()
23 public TProtocolException(int type
)
29 public TProtocolException(int type
, String message
)
35 public TProtocolException(String message
)