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 StringgetErrorCode()Your error code.default StringgetErrorCodeValue()Get the text representation of the error code.
-
-
-
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
-
getErrorCodeValue
default String getErrorCodeValue()
Get the text representation of the error code.- Returns:
- The error code value.
-
-