org.apache.hadoop.hive.service
Class HiveServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.hadoop.hive.service.HiveServerException
All Implemented Interfaces:
Serializable, Cloneable, org.apache.thrift.TBase

public class HiveServerException
extends Exception
implements org.apache.thrift.TBase, Serializable, Cloneable

See Also:
Serialized Form

Field Summary
static int ERRORCODE
           
static int MESSAGE
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int SQLSTATE
           
 
Constructor Summary
HiveServerException()
           
HiveServerException(HiveServerException other)
          Performs a deep copy on other.
HiveServerException(String message, int errorCode, String SQLState)
           
 
Method Summary
 HiveServerException clone()
           
 boolean equals(HiveServerException that)
           
 boolean equals(Object that)
           
 int getErrorCode()
           
 Object getFieldValue(int fieldID)
           
 String getMessage()
           
 String getSQLState()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetErrorCode()
           
 boolean isSetMessage()
           
 boolean isSetSQLState()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setErrorCode(int errorCode)
           
 void setFieldValue(int fieldID, Object value)
           
 void setMessage(String message)
           
 void setSQLState(String SQLState)
           
 String toString()
           
 void unsetErrorCode()
           
 void unsetMessage()
           
 void unsetSQLState()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE

public static final int MESSAGE
See Also:
Constant Field Values

ERRORCODE

public static final int ERRORCODE
See Also:
Constant Field Values

SQLSTATE

public static final int SQLSTATE
See Also:
Constant Field Values

metaDataMap

public static final Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

HiveServerException

public HiveServerException()

HiveServerException

public HiveServerException(String message,
                           int errorCode,
                           String SQLState)

HiveServerException

public HiveServerException(HiveServerException other)
Performs a deep copy on other.

Method Detail

clone

public HiveServerException clone()
Overrides:
clone in class Object

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

setMessage

public void setMessage(String message)

unsetMessage

public void unsetMessage()

isSetMessage

public boolean isSetMessage()

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)

unsetErrorCode

public void unsetErrorCode()

isSetErrorCode

public boolean isSetErrorCode()

getSQLState

public String getSQLState()

setSQLState

public void setSQLState(String SQLState)

unsetSQLState

public void unsetSQLState()

isSetSQLState

public boolean isSetSQLState()

setFieldValue

public void setFieldValue(int fieldID,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase

getFieldValue

public Object getFieldValue(int fieldID)
Specified by:
getFieldValue in interface org.apache.thrift.TBase

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(HiveServerException that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Throwable

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2009 The Apache Software Foundation