public class EntityException extends Exception
EntityException
is thrown whenever an error is is
encountered while performing an operation on the data store.Constructor and Description |
---|
EntityException(String msg,
String errorCode)
Constructs a new
EntityException with detailed message. |
EntityException(String msg,
String errorCode,
Object[] args)
Constructs a new
EntityException with detailed message. |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Method to obtain the error code.
|
String |
getLDAPErrorCode()
Method to obtain the LDAP error code.
|
String |
getMessage()
Overriding the default
getMessage() method of super class
Exception. |
Object[] |
getMessageArgs()
Method to obtain the arguments corresponding to the error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public EntityException(String msg, String errorCode)
EntityException
with detailed message.msg
- The detailed messageerrorCode
- Matches the appropriate entry in
amProfile.properties
.public EntityException(String msg, String errorCode, Object[] args)
EntityException
with detailed message.msg
- The detailed messageerrorCode
- Matches the appropriate entry in
amProfile.properties
args
- if the error message needs specific values to be setpublic String getErrorCode()
public Object[] getMessageArgs()
public String getMessage()
getMessage()
method of super class
Exception.getMessage
in class Throwable
public String getLDAPErrorCode()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.