Package org.apache.thrift
Class TApplicationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.thrift.TException
-
- org.apache.thrift.TApplicationException
-
- All Implemented Interfaces:
java.io.Serializable
public class TApplicationException extends TException
Application level exception- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
BAD_SEQUENCE_ID
static int
INTERNAL_ERROR
static int
INVALID_MESSAGE_TYPE
static int
INVALID_PROTOCOL
static int
INVALID_TRANSFORM
static int
MISSING_RESULT
static int
PROTOCOL_ERROR
protected int
type_
static int
UNKNOWN
static int
UNKNOWN_METHOD
static int
UNSUPPORTED_CLIENT_TYPE
static int
WRONG_METHOD_NAME
-
Constructor Summary
Constructors Constructor Description TApplicationException()
TApplicationException(int type)
TApplicationException(int type, java.lang.String message)
TApplicationException(java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
static TApplicationException
read(TProtocol iprot)
void
write(TProtocol oprot)
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
UNKNOWN_METHOD
public static final int UNKNOWN_METHOD
- See Also:
- Constant Field Values
-
INVALID_MESSAGE_TYPE
public static final int INVALID_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
WRONG_METHOD_NAME
public static final int WRONG_METHOD_NAME
- See Also:
- Constant Field Values
-
BAD_SEQUENCE_ID
public static final int BAD_SEQUENCE_ID
- See Also:
- Constant Field Values
-
MISSING_RESULT
public static final int MISSING_RESULT
- See Also:
- Constant Field Values
-
INTERNAL_ERROR
public static final int INTERNAL_ERROR
- See Also:
- Constant Field Values
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR
- See Also:
- Constant Field Values
-
INVALID_TRANSFORM
public static final int INVALID_TRANSFORM
- See Also:
- Constant Field Values
-
INVALID_PROTOCOL
public static final int INVALID_PROTOCOL
- See Also:
- Constant Field Values
-
UNSUPPORTED_CLIENT_TYPE
public static final int UNSUPPORTED_CLIENT_TYPE
- See Also:
- Constant Field Values
-
type_
protected int type_
-
-
Method Detail
-
getType
public int getType()
-
read
public static TApplicationException read(TProtocol iprot) throws TException
- Throws:
TException
-
write
public void write(TProtocol oprot) throws TException
- Throws:
TException
-
-