org.apache.accumulo.core.security.thrift
Class ThriftSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.accumulo.core.security.thrift.ThriftSecurityException
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ThriftSecurityException>, org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>

public class ThriftSecurityException
extends Exception
implements org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class ThriftSecurityException._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 SecurityErrorCode code
           
static Map<ThriftSecurityException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 String user
           
 
Constructor Summary
ThriftSecurityException()
           
ThriftSecurityException(String user, SecurityErrorCode code)
           
ThriftSecurityException(ThriftSecurityException other)
          Performs a deep copy on other.
 
Method Summary
 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 otherwise
 boolean isSetCode()
          Returns true if field code is set (has been assigned a value) and false otherwise
 boolean isSetUser()
          Returns true if field user is set (has been assigned a value) and false otherwise
 void 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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 interface org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>

clear

public void clear()
Specified by:
clear in interface org.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 interface org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>

getFieldValue

public Object getFieldValue(ThriftSecurityException._Fields field)
Specified by:
getFieldValue in interface org.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 interface org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._Fields>

equals

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

equals

public boolean equals(ThriftSecurityException that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public ThriftSecurityException._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.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 interface org.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 interface org.apache.thrift.TBase<ThriftSecurityException,ThriftSecurityException._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 © 2012 The Apache Software Foundation. All Rights Reserved.