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:
Serializable,TSerializable
Application level exception
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionTApplicationException(int type) TApplicationException(int type, String message) TApplicationException(String message) -
Method Summary
Modifier and TypeMethodDescriptionintgetType()voidReads the TObject from the given input protocol.static TApplicationExceptionConvenience factory method for constructing a TApplicationException given a TProtocol inputvoidWrites the objects out to the protocolMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
UNKNOWN_METHOD
public static final int UNKNOWN_METHOD- See Also:
-
INVALID_MESSAGE_TYPE
public static final int INVALID_MESSAGE_TYPE- See Also:
-
WRONG_METHOD_NAME
public static final int WRONG_METHOD_NAME- See Also:
-
BAD_SEQUENCE_ID
public static final int BAD_SEQUENCE_ID- See Also:
-
MISSING_RESULT
public static final int MISSING_RESULT- See Also:
-
INTERNAL_ERROR
public static final int INTERNAL_ERROR- See Also:
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR- See Also:
-
INVALID_TRANSFORM
public static final int INVALID_TRANSFORM- See Also:
-
INVALID_PROTOCOL
public static final int INVALID_PROTOCOL- See Also:
-
UNSUPPORTED_CLIENT_TYPE
public static final int UNSUPPORTED_CLIENT_TYPE- See Also:
-
type_
protected int type_
-
-
Constructor Details
-
TApplicationException
public TApplicationException() -
TApplicationException
public TApplicationException(int type) -
TApplicationException
-
TApplicationException
-
-
Method Details
-
getType
public int getType() -
getMessage
- Overrides:
getMessagein classThrowable
-
read
Description copied from interface:TSerializableReads the TObject from the given input protocol.- Specified by:
readin interfaceTSerializable- Parameters:
iprot- Input protocol- Throws:
TException- if there is an error reading from iprot
-
readFrom
Convenience factory method for constructing a TApplicationException given a TProtocol input- Parameters:
iprot- protocol from which an instance of TApplicationException is read.- Returns:
- an instance of TApplicationException read from iprot.
- Throws:
TException- if there is an error reading from iprot.
-
write
Description copied from interface:TSerializableWrites the objects out to the protocol- Specified by:
writein interfaceTSerializable- Parameters:
oprot- Output protocol- Throws:
TException- if there is an error writing to oprot
-