public class AuthenticationException extends Exception
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected Object[] |
messageArgs |
protected String |
messageCode |
protected String |
originCode |
protected String |
originMessage |
protected String |
unresolvedMessage |
Constructor and Description |
---|
AuthenticationException() |
AuthenticationException(String message) |
AuthenticationException(String resourceID,
int severity)
A constructor that finds a string using
resourceID and
merges arguments and logs. |
AuthenticationException(String resourceID,
int severity,
Throwable cause)
A constructor that finds a string using
resourceID and logs. |
AuthenticationException(String resourceID,
String[] args)
A constructor that finds a string using
resourceID and
merges arguments and logs. |
AuthenticationException(String resourceID,
String[] args,
int severity)
A constructor that finds a string using
resourceID and
merges arguments and logs. |
AuthenticationException(String resourceID,
String[] args,
int severity,
Throwable cause)
A constructor that finds a string using
resourceID and
merges arguments and logs. |
AuthenticationException(String resourceID,
String[] args,
String originCode,
String originMessage)
A constructor that finds a string using
resourceID and
merges arguments and logs. |
AuthenticationException(String message,
Throwable cause) |
AuthenticationException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.commons.json.JSONObject |
getJson() |
Object[] |
getMessageArgs() |
String |
getMessageCode() |
String |
getOriginCode()
Returns error code provided by orginial data source
|
String |
getOriginMessage()
Returns error details provided by originial data source
|
String |
getUnresolvedMessage() |
void |
setMessageArgs(Object[] messageArgs) |
void |
setMessageCode(String code) |
void |
setUnresolvedMessage(String unresolvedMessage) |
protected static final org.slf4j.Logger logger
protected String originCode
protected String originMessage
protected String messageCode
protected Object[] messageArgs
protected String unresolvedMessage
public AuthenticationException()
public AuthenticationException(String resourceID, String[] args, int severity)
resourceID
and
merges arguments and logs.resourceID
- key of message.args
- array containing value of place holders.severity
- severity of message.public AuthenticationException(String resourceID, String[] args)
resourceID
and
merges arguments and logs.resourceID
- key of message.args
- array containing value of place holders.public AuthenticationException(String resourceID, String[] args, String originCode, String originMessage)
resourceID
and
merges arguments and logs. Additionally takes error code and corresponding to root causeresourceID
- key of message.args
- array containing value of place holders.originCode
- originMessage
- public AuthenticationException(String resourceID, int severity, Throwable cause)
resourceID
and logs.resourceID
- key of message.severity
- severity of message.cause
- cause of the exception.public AuthenticationException(String resourceID, String[] args, int severity, Throwable cause)
resourceID
and
merges arguments and logs.resourceID
- key of message.args
- array containing value of place holders.severity
- severity of message.cause
- cause of the exception.public AuthenticationException(String resourceID, int severity)
resourceID
and
merges arguments and logs.resourceID
- key of message.severity
- severity of message.public AuthenticationException(String message)
public AuthenticationException(Throwable cause)
public Object[] getMessageArgs()
public void setMessageArgs(Object[] messageArgs)
public String getMessageCode()
public void setMessageCode(String code)
public String getUnresolvedMessage()
public void setUnresolvedMessage(String unresolvedMessage)
public String getOriginCode()
public String getOriginMessage()
public org.apache.sling.commons.json.JSONObject getJson()
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.