public class MappingException
extends java.lang.Exception
Modifier and Type | Class and Description |
---|---|
static class |
MappingException.MessageHolder |
Constructor and Description |
---|
MappingException() |
MappingException(java.lang.String messageKey,
java.lang.Object[] args) |
MappingException(java.lang.String messageKey,
java.lang.Throwable cause,
java.lang.Object[] args) |
MappingException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
RootIssue |
getCachedRootIssue()
If this exception has an associated cached issue object, return it.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage()
Return the message of the issue based on default locale
|
java.lang.String |
getMessage(java.util.Locale locale)
Return the message of the issue based on specified locale
|
java.lang.String |
getMessageAction()
Return the action of the message
|
java.lang.Object[] |
getMessageArguments()
Return the arguments used to format the message
|
java.lang.String |
getMessageCause()
Return the cause of the message
|
java.lang.String |
getMessageID()
Return the message ID of the message
|
java.lang.String |
getMessageKey()
Return the message key of the message.
|
boolean |
isUserMessage() |
void |
setIsUserMessage(boolean value) |
void |
setMessageKey(java.lang.String messageKey,
java.lang.Object[] args)
Set the message key.
|
public MappingException()
public MappingException(java.lang.String messageKey, java.lang.Object[] args)
public MappingException(java.lang.Throwable cause)
public MappingException(java.lang.String messageKey, java.lang.Throwable cause, java.lang.Object[] args)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getMessage(java.util.Locale locale)
locale
- The locale used for the translated messagepublic java.lang.String getMessageKey()
public void setMessageKey(java.lang.String messageKey, java.lang.Object[] args)
messageKey
- public java.lang.Object[] getMessageArguments()
public java.lang.String getMessageID()
public java.lang.String getMessageCause()
public java.lang.String getMessageAction()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public RootIssue getCachedRootIssue()
public void setIsUserMessage(boolean value)
public boolean isUserMessage()