Package com.networknt.schema
Class CustomErrorMessageType
- java.lang.Object
-
- com.networknt.schema.CustomErrorMessageType
-
- All Implemented Interfaces:
ErrorMessageType
public class CustomErrorMessageType extends java.lang.Object implements ErrorMessageType
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
errorCode
-
Constructor Summary
Constructors Modifier Constructor Description private
CustomErrorMessageType(java.lang.String errorCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrorCode()
Your error code.static ErrorMessageType
of(java.lang.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(java.lang.String errorCode)
-
getErrorCode
public java.lang.String getErrorCode()
Description copied from interface:ErrorMessageType
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.
- Specified by:
getErrorCode
in interfaceErrorMessageType
- Returns:
- error code
-
-