Interface ExtensionError
public interface ExtensionError
ExtensionError
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionError extensionError = ExtensionError.builder()
.code("{code}")
.message("{message}")
.extensionId("{extensionId}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionErrorBuilderbuilder()builder factory method for ExtensionErrorstatic ExtensionErrorBuilderbuilder(ExtensionError template) create builder for ExtensionError instancecopyDeep()static ExtensionErrordeepCopy(ExtensionError template) factory method to create a deep copy of ExtensionError@NotNull StringgetCode()Error code caused by the Extension.@NotNull StringUnique identifier of the Extension.User-defined unique identifier of the Extension.@NotNull StringPlain text description of the error.static ExtensionErrorof()factory methodstatic ExtensionErrorof(ExtensionError template) factory method to create a shallow copy ExtensionErrorvoidError code caused by the Extension.voidsetExtensionId(String extensionId) Unique identifier of the Extension.voidsetExtensionKey(String extensionKey) User-defined unique identifier of the Extension.voidsetMessage(String message) Plain text description of the error.voidError-specific additional fields.static com.fasterxml.jackson.core.type.TypeReference<ExtensionError>gives a TypeReference for usage with Jackson DataBindvalues()Error-specific additional fields.default <T> TwithExtensionError(Function<ExtensionError, T> helper) accessor map function
-
Method Details
-
getCode
Error code caused by the Extension. For example,
InvalidField.- Returns:
- code
-
getMessage
Plain text description of the error.
- Returns:
- message
-
getExtensionId
Unique identifier of the Extension.
- Returns:
- extensionId
-
getExtensionKey
String getExtensionKey()User-defined unique identifier of the Extension.
- Returns:
- extensionKey
-
values
Error-specific additional fields.
- Returns:
- map of the pattern property values
-
setCode
Error code caused by the Extension. For example,
InvalidField.- Parameters:
code- value to be set
-
setMessage
Plain text description of the error.
- Parameters:
message- value to be set
-
setExtensionId
Unique identifier of the Extension.
- Parameters:
extensionId- value to be set
-
setExtensionKey
User-defined unique identifier of the Extension.
- Parameters:
extensionKey- value to be set
-
setValue
Error-specific additional fields.
- Parameters:
key- property namevalue- property value
-
of
factory method- Returns:
- instance of ExtensionError
-
of
factory method to create a shallow copy ExtensionError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ExtensionError copyDeep() -
deepCopy
factory method to create a deep copy of ExtensionError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionError- Returns:
- builder
-
builder
create builder for ExtensionError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-