Class ExceptionMessageDefinition
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition
org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition
ExceptionMessageDefinition extends MessageDefinition to provide a container that describes
a single instance of a message for an exception.
-
Constructor Summary
ConstructorDescriptionExceptionMessageDefinition
(int httpErrorCode, String messageId, String messageTemplate, String systemAction, String userAction) Constructor to save all the fixed values of a message. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the HTTP code that describes the nature of the exception.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition
getMessageId, getMessageParams, getMessageTemplate, getSystemAction, getUserAction, setMessageParameters
-
Constructor Details
-
ExceptionMessageDefinition
public ExceptionMessageDefinition(int httpErrorCode, String messageId, String messageTemplate, String systemAction, String userAction) Constructor to save all the fixed values of a message. This is typically populated from an Enum message set. The constructor passes most values to the super class and just retains the additional value for the exception.- Parameters:
httpErrorCode
- the HTTP code that describes the nature of the errormessageId
- unique identifier 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 any
-
-
Method Details
-
getHttpErrorCode
public int getHttpErrorCode()Return the HTTP code that describes the nature of the exception.- Returns:
- integer code
-
toString
JSON-style toString.- Overrides:
toString
in classMessageDefinition
- Returns:
- list of properties and their values.
-