org.apache.accumulo.core.client
Class AccumuloSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.accumulo.core.client.AccumuloSecurityException
All Implemented Interfaces:
Serializable

public class AccumuloSecurityException
extends Exception

An Accumulo Exception for security violations, authentication failures, authorization failures, etc.

See Also:
Serialized Form

Constructor Summary
AccumuloSecurityException(String user, SecurityErrorCode errorcode)
           
AccumuloSecurityException(String user, SecurityErrorCode errorcode, Throwable cause)
           
 
Method Summary
 ThriftSecurityException asThriftException()
           
 SecurityErrorCode getErrorCode()
          Deprecated. since 1.5.0; Use getSecurityErrorCode() instead.
 String getMessage()
           
 SecurityErrorCode getSecurityErrorCode()
           
 String getUser()
           
 void setUser(String s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccumuloSecurityException

public AccumuloSecurityException(String user,
                                 SecurityErrorCode errorcode,
                                 Throwable cause)
Parameters:
user - the relevant user for the security violation
errorcode - the specific reason for this exception
cause - the exception that caused this violation

AccumuloSecurityException

public AccumuloSecurityException(String user,
                                 SecurityErrorCode errorcode)
Parameters:
user - the relevant user for the security violation
errorcode - the specific reason for this exception
Method Detail

asThriftException

public ThriftSecurityException asThriftException()
Returns:
this exception as a thrift exception

getUser

public String getUser()
Returns:
the relevant user for the security violation

setUser

public void setUser(String s)

getSecurityErrorCode

public SecurityErrorCode getSecurityErrorCode()
Returns:
the specific reason for this exception
Since:
1.5.0

getErrorCode

public SecurityErrorCode getErrorCode()
Deprecated. since 1.5.0; Use getSecurityErrorCode() instead.

Returns:
the specific reason for this exception

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.