Enum WebSubClientErrorCode
- java.lang.Object
-
- java.lang.Enum<WebSubClientErrorCode>
-
- io.mosip.kernel.websub.api.constants.WebSubClientErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<WebSubClientErrorCode>
public enum WebSubClientErrorCode extends Enum<WebSubClientErrorCode>
ThisEnumconsist error codes for this api.- Author:
- Urvil Joshi
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Function to get error codeStringgetErrorMessage()Function to get the error messagestatic WebSubClientErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static WebSubClientErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGISTER_ERROR
public static final WebSubClientErrorCode REGISTER_ERROR
-
UNREGISTER_ERROR
public static final WebSubClientErrorCode UNREGISTER_ERROR
-
PUBLISH_ERROR
public static final WebSubClientErrorCode PUBLISH_ERROR
-
NOTIFY_UPDATE_ERROR
public static final WebSubClientErrorCode NOTIFY_UPDATE_ERROR
-
SUBSCRIBE_ERROR
public static final WebSubClientErrorCode SUBSCRIBE_ERROR
-
AUTHENTTICATED_CONTENT_VERIFICATION_HEADER_ERROR
public static final WebSubClientErrorCode AUTHENTTICATED_CONTENT_VERIFICATION_HEADER_ERROR
-
AUTHENTTICATED_CONTENT_ANNOTATION_SECRET_ERROR
public static final WebSubClientErrorCode AUTHENTTICATED_CONTENT_ANNOTATION_SECRET_ERROR
-
AUTHENTTICATED_CONTENT_ERROR
public static final WebSubClientErrorCode AUTHENTTICATED_CONTENT_ERROR
-
IO_ERROR
public static final WebSubClientErrorCode IO_ERROR
-
INSTANCE_ERROR
public static final WebSubClientErrorCode INSTANCE_ERROR
-
INPUT_VERIFICATION_ERROR
public static final WebSubClientErrorCode INPUT_VERIFICATION_ERROR
-
-
Method Detail
-
values
public static WebSubClientErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WebSubClientErrorCode c : WebSubClientErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebSubClientErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorMessage
public String getErrorMessage()
Function to get the error message- Returns:
errorMessager
-
-