org.apache.thrift.protocol
Class TProtocolException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.thrift.TException
              extended by org.apache.thrift.protocol.TProtocolException
All Implemented Interfaces:
java.io.Serializable

public class TProtocolException
extends TException

Protocol exceptions.

See Also:
Serialized Form

Field Summary
static int BAD_VERSION
           
static int INVALID_DATA
           
static int NEGATIVE_SIZE
           
static int NOT_IMPLEMENTED
           
static int SIZE_LIMIT
           
protected  int type_
           
static int UNKNOWN
           
 
Constructor Summary
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
 int getType()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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)
Method Detail

getType

public int getType()