Package com.networknt.schema
Interface ErrorMessageType
-
- All Known Implementing Classes:
CustomErrorMessageType,ValidatorTypeCode
public interface ErrorMessageType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetCustomMessage()StringgetErrorCode()Your error code.MessageFormatgetMessageFormat()optional message format
-
-
-
Method Detail
-
getErrorCode
String getErrorCode()
Your error code. Please ensure global uniqueness. Builtin error codes are sequential numbers.Customer error codes could have a prefix to denote the namespace of your custom keywords and errors.
- Returns:
- error code
-
getMessageFormat
MessageFormat getMessageFormat()
optional message format- Returns:
- the message format or null if no message text shall be rendered.
-
getCustomMessage
default String getCustomMessage()
-
-