Package org.apache.thrift.protocol
Class TProtocolException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.thrift.TException
-
- org.apache.thrift.protocol.TProtocolException
-
- All Implemented Interfaces:
java.io.Serializable
public class TProtocolException extends TException
Protocol exceptions.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
BAD_VERSION
static int
DEPTH_LIMIT
static int
INVALID_DATA
static int
NEGATIVE_SIZE
static int
NOT_IMPLEMENTED
static int
SIZE_LIMIT
protected int
type_
static int
UNKNOWN
-
Constructor Summary
Constructors Constructor Description TProtocolException()
TProtocolException(int type)
TProtocolException(int type, java.lang.String message)
TProtocolException(int type, java.lang.String message, java.lang.Throwable cause)
TProtocolException(int type, java.lang.Throwable cause)
TProtocolException(java.lang.String message)
TProtocolException(java.lang.String message, java.lang.Throwable cause)
TProtocolException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
INVALID_DATA
public static final int INVALID_DATA
- See Also:
- Constant Field Values
-
NEGATIVE_SIZE
public static final int NEGATIVE_SIZE
- See Also:
- Constant Field Values
-
SIZE_LIMIT
public static final int SIZE_LIMIT
- See Also:
- Constant Field Values
-
BAD_VERSION
public static final int BAD_VERSION
- See Also:
- Constant Field Values
-
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTED
- See Also:
- Constant Field Values
-
DEPTH_LIMIT
public static final int DEPTH_LIMIT
- See Also:
- Constant Field Values
-
type_
protected int type_
-
-
Constructor Detail
-
TProtocolException
public TProtocolException()
-
TProtocolException
public TProtocolException(int type)
-
TProtocolException
public TProtocolException(int type, java.lang.String message)
-
TProtocolException
public TProtocolException(java.lang.String message)
-
TProtocolException
public TProtocolException(int type, java.lang.Throwable cause)
-
TProtocolException
public TProtocolException(java.lang.Throwable cause)
-
TProtocolException
public TProtocolException(java.lang.String message, java.lang.Throwable cause)
-
TProtocolException
public TProtocolException(int type, java.lang.String message, java.lang.Throwable cause)
-
-