public class ValidationMessage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationMessage.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String[] |
getArguments() |
String |
getCode() |
Map<String,Object> |
getDetails() |
String |
getMessage() |
String |
getPath() |
String |
getSchemaPath() |
String |
getType() |
int |
hashCode() |
static ValidationMessage |
of(String type,
ErrorMessageType errorMessageType,
String at,
String schemaPath,
Map<String,Object> details) |
static ValidationMessage |
of(String type,
ErrorMessageType errorMessageType,
String at,
String schemaPath,
String... arguments) |
static ValidationMessage |
ofWithCustom(String type,
ErrorMessageType errorMessageType,
String customMessage,
String at,
String schemaPath,
String... arguments) |
void |
setSchemaPath(String schemaPath) |
void |
setType(String type) |
String |
toString() |
public String getCode()
public String getPath()
public String getSchemaPath()
public void setSchemaPath(String schemaPath)
public String[] getArguments()
public String getMessage()
public String getType()
public void setType(String type)
public static ValidationMessage ofWithCustom(String type, ErrorMessageType errorMessageType, String customMessage, String at, String schemaPath, String... arguments)
public static ValidationMessage of(String type, ErrorMessageType errorMessageType, String at, String schemaPath, String... arguments)
public static ValidationMessage of(String type, ErrorMessageType errorMessageType, String at, String schemaPath, Map<String,Object> details)
Copyright © 2023. All rights reserved.