public static class XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder extends Object
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 |
---|
XPFStructuredErrorMessageBuilder() |
Modifier and Type | Method and Description |
---|---|
XPFStructuredErrorMessage |
build()
Build.
|
private void |
validate() |
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
withData(Map<String,String> data)
With data.
|
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
withData(String key,
String value)
With data.
|
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
withDebugMessage(String debugMessage)
With debug message.
|
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
withMessageId(String messageId)
With message id.
|
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
withResolution(XPFStructuredErrorResolution resolution)
With resolution.
|
XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder |
withType(XPFStructuredErrorMessageType type)
With type.
|
private XPFStructuredErrorMessageType type
private String messageId
private String debugMessage
private XPFStructuredErrorResolution resolution
public XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder withType(XPFStructuredErrorMessageType type)
type
- the structured error message type.public XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder withMessageId(String messageId)
messageId
- the message idpublic XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder withDebugMessage(String debugMessage)
debugMessage
- the debug messagepublic XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder withData(String key, String value)
key
- the keyvalue
- the valuepublic XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder withData(Map<String,String> data)
data
- the datapublic XPFStructuredErrorMessage.XPFStructuredErrorMessageBuilder withResolution(XPFStructuredErrorResolution resolution)
resolution
- the resolutionpublic XPFStructuredErrorMessage build()
private void validate()
Copyright © 2022. All rights reserved.