Package ai.heavy.thrift.server
Class TDBException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.thrift.TException
-
- ai.heavy.thrift.server.TDBException
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TDBException>,org.apache.thrift.TBase<TDBException,TDBException._Fields>,org.apache.thrift.TSerializable
public class TDBException extends org.apache.thrift.TException implements org.apache.thrift.TBase<TDBException,TDBException._Fields>, Serializable, Cloneable, Comparable<TDBException>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTDBException._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description Stringerror_msgstatic Map<TDBException._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description TDBException()TDBException(TDBException other)Performs a deep copy on other.TDBException(String error_msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TDBException other)TDBExceptiondeepCopy()booleanequals(TDBException that)booleanequals(Object that)TDBException._FieldsfieldForId(int fieldId)StringgetError_msg()ObjectgetFieldValue(TDBException._Fields field)inthashCode()booleanisSet(TDBException._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetError_msg()Returns true if field error_msg is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TDBExceptionsetError_msg(String error_msg)voidsetError_msgIsSet(boolean value)voidsetFieldValue(TDBException._Fields field, Object value)StringtoString()voidunsetError_msg()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
error_msg
public String error_msg
-
metaDataMap
public static final Map<TDBException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TDBException
public TDBException()
-
TDBException
public TDBException(String error_msg)
-
TDBException
public TDBException(TDBException other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TDBException deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TDBException,TDBException._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TDBException,TDBException._Fields>
-
getError_msg
public String getError_msg()
-
setError_msg
public TDBException setError_msg(String error_msg)
-
unsetError_msg
public void unsetError_msg()
-
isSetError_msg
public boolean isSetError_msg()
Returns true if field error_msg is set (has been assigned a value) and false otherwise
-
setError_msgIsSet
public void setError_msgIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TDBException._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TDBException,TDBException._Fields>
-
getFieldValue
public Object getFieldValue(TDBException._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TDBException,TDBException._Fields>
-
isSet
public boolean isSet(TDBException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TDBException,TDBException._Fields>
-
equals
public boolean equals(TDBException that)
-
compareTo
public int compareTo(TDBException other)
- Specified by:
compareToin interfaceComparable<TDBException>
-
fieldForId
public TDBException._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TDBException,TDBException._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-