org.apache.accumulo.core.client
Class AccumuloSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.accumulo.core.client.AccumuloSecurityException
- All Implemented Interfaces:
- java.io.Serializable
public class AccumuloSecurityException
- extends java.lang.Exception
An Accumulo Exception for security violations, authentication failures, authorization failures, etc.
- See Also:
- Serialized Form
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 |
AccumuloSecurityException
public AccumuloSecurityException(java.lang.String user,
SecurityErrorCode errorcode,
java.lang.Throwable cause)
- Parameters:
user
- the relevant user for the security violationerrorcode
- the specific reason for this exceptioncause
- the exception that caused this violation
AccumuloSecurityException
public AccumuloSecurityException(java.lang.String user,
SecurityErrorCode errorcode)
- Parameters:
user
- the relevant user for the security violationerrorcode
- the specific reason for this exception
asThriftException
public ThriftSecurityException asThriftException()
- Returns:
- this exception as a thrift exception
getUser
public java.lang.String getUser()
- Returns:
- the relevant user for the security violation
getErrorCode
public SecurityErrorCode getErrorCode()
- Returns:
- the specific reason for this exception
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.