public class ExceptionMessageDefinition extends MessageDefinition
| Constructor and Description |
|---|
ExceptionMessageDefinition(int httpErrorCode,
String messageId,
String messageTemplate,
String systemAction,
String userAction)
Constructor to save all of the fixed values of a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpErrorCode()
Return the HTTP code that describes the nature of the exception.
|
String |
toString()
JSON-style toString.
|
getMessageId, getMessageParams, getMessageTemplate, getSystemAction, getUserAction, setMessageParameterspublic ExceptionMessageDefinition(int httpErrorCode,
String messageId,
String messageTemplate,
String systemAction,
String userAction)
httpErrorCode - the HTTP code that describes the nature of the errormessageId - unique Id for the messagemessageTemplate - text for the messagesystemAction - description of the action taken by the system when the condition happeneduserAction - instructions for resolving the situation, if anypublic int getHttpErrorCode()
public String toString()
toString in class MessageDefinitionCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.