org.apache.hadoop.hive.service
Class HiveServerException

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

public class HiveServerException
extends org.apache.thrift.TException
implements org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class HiveServerException._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<HiveServerException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
HiveServerException()
           
HiveServerException(HiveServerException other)
          Performs a deep copy on other.
HiveServerException(String message, int errorCode, String SQLState)
           
 
Method Summary
 void clear()
           
 int compareTo(HiveServerException other)
           
 HiveServerException deepCopy()
           
 boolean equals(HiveServerException that)
           
 boolean equals(Object that)
           
 HiveServerException._Fields fieldForId(int fieldId)
           
 int getErrorCode()
           
 Object getFieldValue(HiveServerException._Fields field)
           
 String getMessage()
           
 String getSQLState()
           
 int hashCode()
           
 boolean isSet(HiveServerException._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetErrorCode()
          Returns true if field errorCode is set (has been assigned a value) and false otherwise
 boolean isSetMessage()
          Returns true if field message is set (has been assigned a value) and false otherwise
 boolean isSetSQLState()
          Returns true if field SQLState is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setErrorCode(int errorCode)
           
 void setErrorCodeIsSet(boolean value)
           
 void setFieldValue(HiveServerException._Fields field, Object value)
           
 void setMessage(String message)
           
 void setMessageIsSet(boolean value)
           
 void setSQLState(String SQLState)
           
 void setSQLStateIsSet(boolean value)
           
 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<HiveServerException._Fields,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

deepCopy

public HiveServerException deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

setMessage

public void setMessage(String message)

unsetMessage

public void unsetMessage()

isSetMessage

public boolean isSetMessage()
Returns true if field message is set (has been assigned a value) and false otherwise


setMessageIsSet

public void setMessageIsSet(boolean value)

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)

unsetErrorCode

public void unsetErrorCode()

isSetErrorCode

public boolean isSetErrorCode()
Returns true if field errorCode is set (has been assigned a value) and false otherwise


setErrorCodeIsSet

public void setErrorCodeIsSet(boolean value)

getSQLState

public String getSQLState()

setSQLState

public void setSQLState(String SQLState)

unsetSQLState

public void unsetSQLState()

isSetSQLState

public boolean isSetSQLState()
Returns true if field SQLState is set (has been assigned a value) and false otherwise


setSQLStateIsSet

public void setSQLStateIsSet(boolean value)

setFieldValue

public void setFieldValue(HiveServerException._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>

getFieldValue

public Object getFieldValue(HiveServerException._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>

isSet

public boolean isSet(HiveServerException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>

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

compareTo

public int compareTo(HiveServerException other)
Specified by:
compareTo in interface Comparable<HiveServerException>

fieldForId

public HiveServerException._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<HiveServerException,HiveServerException._Fields>
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<HiveServerException,HiveServerException._Fields>
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 © 2013 The Apache Software Foundation