Package 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:
- Serializable
An Accumulo Exception for security violations, authentication failures, authorization failures,
 etc.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode) AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode, String tableInfo) AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode, String tableInfo, Throwable cause) AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode, Throwable cause) AccumuloSecurityException(org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException thrift) Construct a user-facing exception from a serialized version.
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.accumulo.core.clientImpl.thrift.ThriftSecurityExceptiongetUser()voidsetTableInfo(String tableInfo) voidMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
AccumuloSecurityExceptionpublic AccumuloSecurityException(org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException thrift) Construct a user-facing exception from a serialized version.- Parameters:
- thrift- a serialized version
 
- 
AccumuloSecurityExceptionpublic AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.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
 
- 
AccumuloSecurityExceptionpublic AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode, String tableInfo, Throwable cause) - Parameters:
- user- the relevant user for the security violation
- errorcode- the specific reason for this exception
- tableInfo- the relevant tableInfo for the security violation
- cause- the exception that caused this violation
 
- 
AccumuloSecurityExceptionpublic AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode) - Parameters:
- user- the relevant user for the security violation
- errorcode- the specific reason for this exception
 
- 
AccumuloSecurityExceptionpublic AccumuloSecurityException(String user, org.apache.accumulo.core.clientImpl.thrift.SecurityErrorCode errorcode, String tableInfo) - Parameters:
- user- the relevant user for the security violation
- errorcode- the specific reason for this exception
- tableInfo- the relevant tableInfo for the security violation
 
 
- 
- 
Method Details- 
asThriftExceptionpublic org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException asThriftException()- Returns:
- this exception as a thrift exception
 
- 
getUser- Returns:
- the relevant user for the security violation
 
- 
setUser
- 
getTableInfo- Returns:
- the relevant tableInfo for the security violation
 
- 
setTableInfo
- 
getSecurityErrorCode- Returns:
- the specific reason for this exception
- Since:
- 1.5.0
 
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
 
-