public class TApplicationException extends TException implements TSerializable
Modifier and Type | Field and 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 and Description |
---|
TApplicationException() |
TApplicationException(int type) |
TApplicationException(int type,
java.lang.String message) |
TApplicationException(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
int |
getType() |
void |
read(TProtocol iprot)
Reads the TObject from the given input protocol.
|
static TApplicationException |
readFrom(TProtocol iprot)
Convenience factory method for constructing a TApplicationException given a TProtocol input
|
void |
write(TProtocol oprot)
Writes the objects out to the protocol
|
public static final int UNKNOWN
public static final int UNKNOWN_METHOD
public static final int INVALID_MESSAGE_TYPE
public static final int WRONG_METHOD_NAME
public static final int BAD_SEQUENCE_ID
public static final int MISSING_RESULT
public static final int INTERNAL_ERROR
public static final int PROTOCOL_ERROR
public static final int INVALID_TRANSFORM
public static final int INVALID_PROTOCOL
public static final int UNSUPPORTED_CLIENT_TYPE
protected int type_
public TApplicationException()
public TApplicationException(int type)
public TApplicationException(int type, java.lang.String message)
public TApplicationException(java.lang.String message)
public int getType()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void read(TProtocol iprot) throws TException
TSerializable
read
in interface TSerializable
iprot
- Input protocolTException
public static TApplicationException readFrom(TProtocol iprot) throws TException
TException
public void write(TProtocol oprot) throws TException
TSerializable
write
in interface TSerializable
oprot
- Output protocolTException