Package com.networknt.schema
Class CustomErrorMessageType
- java.lang.Object
-
- com.networknt.schema.CustomErrorMessageType
-
- All Implemented Interfaces:
ErrorMessageType
public class CustomErrorMessageType extends Object implements ErrorMessageType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Your error code.static ErrorMessageTypeof(String errorCode)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.networknt.schema.ErrorMessageType
getErrorCodeValue
-
-
-
-
Method Detail
-
of
public static ErrorMessageType of(String errorCode)
-
getErrorCode
public String getErrorCode()
Description copied from interface:ErrorMessageTypeYour 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.
- Specified by:
getErrorCodein interfaceErrorMessageType- Returns:
- error code
-
-