@Generated(value="Autogenerated by Thrift Compiler (0.10.0)",
date="2017-08-25")
public class TDatabaseException
extends org.apache.thrift.TException
implements org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<TDatabaseException>
| Modifier and Type | Class and Description |
|---|---|
static class |
TDatabaseException._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
int |
errorNumber |
java.lang.String |
message |
static java.util.Map<TDatabaseException._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
TDatabaseExceptionType |
type |
| Constructor and Description |
|---|
TDatabaseException() |
TDatabaseException(TDatabaseException other)
Performs a deep copy on other.
|
TDatabaseException(TDatabaseExceptionType type,
java.lang.String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(TDatabaseException other) |
TDatabaseException |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(TDatabaseException that) |
TDatabaseException._Fields |
fieldForId(int fieldId) |
int |
getErrorNumber() |
java.lang.Object |
getFieldValue(TDatabaseException._Fields field) |
java.lang.String |
getMessage() |
TDatabaseExceptionType |
getType() |
int |
hashCode() |
boolean |
isSet(TDatabaseException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetErrorNumber()
Returns true if field errorNumber 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 |
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
TDatabaseException |
setErrorNumber(int errorNumber) |
void |
setErrorNumberIsSet(boolean value) |
void |
setFieldValue(TDatabaseException._Fields field,
java.lang.Object value) |
TDatabaseException |
setMessage(java.lang.String message) |
void |
setMessageIsSet(boolean value) |
TDatabaseException |
setType(TDatabaseExceptionType type) |
void |
setTypeIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetErrorNumber() |
void |
unsetMessage() |
void |
unsetType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public TDatabaseExceptionType type
TDatabaseExceptionTypepublic java.lang.String message
public int errorNumber
public static final java.util.Map<TDatabaseException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TDatabaseException()
public TDatabaseException(TDatabaseExceptionType type, java.lang.String message)
public TDatabaseException(TDatabaseException other)
public TDatabaseException deepCopy()
deepCopy in interface org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>public void clear()
clear in interface org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>public TDatabaseExceptionType getType()
TDatabaseExceptionTypepublic TDatabaseException setType(TDatabaseExceptionType type)
TDatabaseExceptionTypepublic void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic TDatabaseException setMessage(java.lang.String message)
public void unsetMessage()
public boolean isSetMessage()
public void setMessageIsSet(boolean value)
public int getErrorNumber()
public TDatabaseException setErrorNumber(int errorNumber)
public void unsetErrorNumber()
public boolean isSetErrorNumber()
public void setErrorNumberIsSet(boolean value)
public void setFieldValue(TDatabaseException._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>public java.lang.Object getFieldValue(TDatabaseException._Fields field)
getFieldValue in interface org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>public boolean isSet(TDatabaseException._Fields field)
isSet in interface org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(TDatabaseException that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(TDatabaseException other)
compareTo in interface java.lang.Comparable<TDatabaseException>public TDatabaseException._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<TDatabaseException,TDatabaseException._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Throwablepublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.