public class XPFStructuredErrorMessage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder
Structured error message builder.
|
Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
data |
private String |
debugMessage |
private String |
messageId |
private XPFStructuredErrorResolution |
resolution |
private XPFStructuredErrorMessageType |
type |
Constructor and Description |
---|
XPFStructuredErrorMessage(String messageId,
String debugMessage,
Map<String,String> data)
Constructor to create a StructuredErrorMessage of type Error.
|
XPFStructuredErrorMessage(XPFStructuredErrorMessageType type,
String messageId,
String debugMessage,
Map<String,String> data)
Constructor to create a StructuredErrorMessage.
|
XPFStructuredErrorMessage(XPFStructuredErrorMessageType type,
String messageId,
String debugMessage,
Map<String,String> data,
XPFStructuredErrorResolution resolution)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
builder()
Builder.
|
boolean |
equals(Object other) |
Map<String,String> |
getData()
Get the map of additional information related to the message.
|
String |
getDebugMessage()
Get the debug message for the structured message.
|
String |
getMessageId()
Get the id of the message.
|
Optional<XPFStructuredErrorResolution> |
getResolution() |
XPFStructuredErrorMessageType |
getType()
Get the type of the message.
|
int |
hashCode() |
String |
toString() |
private final XPFStructuredErrorMessageType type
private final String messageId
private final String debugMessage
private final XPFStructuredErrorResolution resolution
public XPFStructuredErrorMessage(String messageId, String debugMessage, Map<String,String> data)
messageId
- messageIddebugMessage
- debug messagedata
- datapublic XPFStructuredErrorMessage(XPFStructuredErrorMessageType type, String messageId, String debugMessage, Map<String,String> data)
type
- typemessageId
- messageIddebugMessage
- debug messagedata
- datapublic XPFStructuredErrorMessage(XPFStructuredErrorMessageType type, String messageId, String debugMessage, Map<String,String> data, XPFStructuredErrorResolution resolution)
type
- typemessageId
- messageIddebugMessage
- debug messagedata
- dataresolution
- resolutionpublic Optional<XPFStructuredErrorResolution> getResolution()
public XPFStructuredErrorMessageType getType()
public String getMessageId()
public String getDebugMessage()
public Map<String,String> getData()
public static XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder builder()
Copyright © 2022. All rights reserved.