Class AuthenticationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.aemfd.dermis.authentication.exception.AuthenticationException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DermisException
public class AuthenticationException extends java.lang.Exception
Exception class for any exceptions or errors during processing within the Dermis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationException()
AuthenticationException(java.lang.String message)
AuthenticationException(java.lang.String resourceID, int severity)
A constructor that finds a string usingresourceID
and merges arguments and logs.AuthenticationException(java.lang.String resourceID, int severity, java.lang.Throwable cause)
A constructor that finds a string usingresourceID
and logs.AuthenticationException(java.lang.String resourceID, java.lang.String[] args)
A constructor that finds a string usingresourceID
and merges arguments and logs.AuthenticationException(java.lang.String resourceID, java.lang.String[] args, int severity)
A constructor that finds a string usingresourceID
and merges arguments and logs.AuthenticationException(java.lang.String resourceID, java.lang.String[] args, int severity, java.lang.Throwable cause)
A constructor that finds a string usingresourceID
and merges arguments and logs.AuthenticationException(java.lang.String resourceID, java.lang.String[] args, java.lang.String originCode, java.lang.String originMessage)
A constructor that finds a string usingresourceID
and merges arguments and logs.AuthenticationException(java.lang.String message, java.lang.Throwable cause)
AuthenticationException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.commons.json.JSONObject
getJson()
java.lang.Object[]
getMessageArgs()
java.lang.String
getMessageCode()
java.lang.String
getOriginCode()
Returns error code provided by orginial data sourcejava.lang.String
getOriginMessage()
Returns error details provided by originial data sourcejava.lang.String
getUnresolvedMessage()
void
setMessageArgs(java.lang.Object[] messageArgs)
void
setMessageCode(java.lang.String code)
void
setUnresolvedMessage(java.lang.String unresolvedMessage)
-
-
-
Constructor Detail
-
AuthenticationException
public AuthenticationException()
-
AuthenticationException
public AuthenticationException(java.lang.String resourceID, java.lang.String[] args, int severity)
A constructor that finds a string usingresourceID
and merges arguments and logs.- Parameters:
resourceID
- key of message.args
- array containing value of place holders.severity
- severity of message.
-
AuthenticationException
public AuthenticationException(java.lang.String resourceID, java.lang.String[] args)
A constructor that finds a string usingresourceID
and merges arguments and logs.- Parameters:
resourceID
- key of message.args
- array containing value of place holders.
-
AuthenticationException
public AuthenticationException(java.lang.String resourceID, java.lang.String[] args, java.lang.String originCode, java.lang.String originMessage)
A constructor that finds a string usingresourceID
and merges arguments and logs. Additionally takes error code and corresponding to root cause- Parameters:
resourceID
- key of message.args
- array containing value of place holders.originCode
-originMessage
-
-
AuthenticationException
public AuthenticationException(java.lang.String resourceID, int severity, java.lang.Throwable cause)
A constructor that finds a string usingresourceID
and logs.- Parameters:
resourceID
- key of message.severity
- severity of message.cause
- cause of the exception.
-
AuthenticationException
public AuthenticationException(java.lang.String resourceID, java.lang.String[] args, int severity, java.lang.Throwable cause)
A constructor that finds a string usingresourceID
and merges arguments and logs.- Parameters:
resourceID
- key of message.args
- array containing value of place holders.severity
- severity of message.cause
- cause of the exception.
-
AuthenticationException
public AuthenticationException(java.lang.String resourceID, int severity)
A constructor that finds a string usingresourceID
and merges arguments and logs.- Parameters:
resourceID
- key of message.severity
- severity of message.
-
AuthenticationException
public AuthenticationException(java.lang.String message)
-
AuthenticationException
public AuthenticationException(java.lang.Throwable cause)
-
AuthenticationException
public AuthenticationException(java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
getMessageArgs
public java.lang.Object[] getMessageArgs()
-
setMessageArgs
public void setMessageArgs(java.lang.Object[] messageArgs)
-
getMessageCode
public java.lang.String getMessageCode()
-
setMessageCode
public void setMessageCode(java.lang.String code)
-
getUnresolvedMessage
public java.lang.String getUnresolvedMessage()
-
setUnresolvedMessage
public void setUnresolvedMessage(java.lang.String unresolvedMessage)
-
getOriginCode
public java.lang.String getOriginCode()
Returns error code provided by orginial data source- Returns:
-
getOriginMessage
public java.lang.String getOriginMessage()
Returns error details provided by originial data source- Returns:
-
getJson
public org.apache.sling.commons.json.JSONObject getJson()
-
-