Class ThriftSecurityException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.thrift.TException
-
- org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ThriftSecurityException>
,org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
public class ThriftSecurityException extends org.apache.thrift.TException implements org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>, Serializable, Cloneable, Comparable<ThriftSecurityException>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThriftSecurityException._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description SecurityErrorCode
code
static Map<ThriftSecurityException._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
String
user
-
Constructor Summary
Constructors Constructor Description ThriftSecurityException()
ThriftSecurityException(String user, SecurityErrorCode code)
ThriftSecurityException(ThriftSecurityException other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
compareTo(ThriftSecurityException other)
ThriftSecurityException
deepCopy()
boolean
equals(Object that)
boolean
equals(ThriftSecurityException that)
ThriftSecurityException._Fields
fieldForId(int fieldId)
SecurityErrorCode
getCode()
Object
getFieldValue(ThriftSecurityException._Fields field)
String
getUser()
int
hashCode()
boolean
isSet(ThriftSecurityException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetCode()
Returns true if field code is set (has been assigned a value) and false otherwiseboolean
isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
ThriftSecurityException
setCode(SecurityErrorCode code)
void
setCodeIsSet(boolean value)
void
setFieldValue(ThriftSecurityException._Fields field, Object value)
ThriftSecurityException
setUser(String user)
void
setUserIsSet(boolean value)
String
toString()
void
unsetCode()
void
unsetUser()
void
validate()
void
write(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
-
user
public String user
-
code
public SecurityErrorCode code
- See Also:
SecurityErrorCode
-
metaDataMap
public static final Map<ThriftSecurityException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
ThriftSecurityException
public ThriftSecurityException()
-
ThriftSecurityException
public ThriftSecurityException(String user, SecurityErrorCode code)
-
ThriftSecurityException
public ThriftSecurityException(ThriftSecurityException other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public ThriftSecurityException deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
-
getUser
public String getUser()
-
setUser
public ThriftSecurityException setUser(String user)
-
unsetUser
public void unsetUser()
-
isSetUser
public boolean isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwise
-
setUserIsSet
public void setUserIsSet(boolean value)
-
getCode
public SecurityErrorCode getCode()
- See Also:
SecurityErrorCode
-
setCode
public ThriftSecurityException setCode(SecurityErrorCode code)
- See Also:
SecurityErrorCode
-
unsetCode
public void unsetCode()
-
isSetCode
public boolean isSetCode()
Returns true if field code is set (has been assigned a value) and false otherwise
-
setCodeIsSet
public void setCodeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(ThriftSecurityException._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
-
getFieldValue
public Object getFieldValue(ThriftSecurityException._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
-
isSet
public boolean isSet(ThriftSecurityException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
-
equals
public boolean equals(ThriftSecurityException that)
-
compareTo
public int compareTo(ThriftSecurityException other)
- Specified by:
compareTo
in interfaceComparable<ThriftSecurityException>
-
fieldForId
public ThriftSecurityException._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._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 interfaceorg.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-