Enum StandardServiceExceptionCodes
- java.lang.Object
-
- java.lang.Enum<StandardServiceExceptionCodes>
-
- com.hybris.cis.client.shared.exception.codes.StandardServiceExceptionCodes
-
- All Implemented Interfaces:
StandardServiceExceptionCode,java.io.Serializable,java.lang.Comparable<StandardServiceExceptionCodes>
public enum StandardServiceExceptionCodes extends java.lang.Enum<StandardServiceExceptionCodes> implements StandardServiceExceptionCode
Shared standard error codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_RESPONSE_FROM_SERVICE"The 3rd party service returned an error".INCOMPLETE_SERVICE_CONFIGURATION"The service configuration is missing a required value".INTERNAL_SERVER_ERRORInternal server error.INVALID_OR_MISSING_FIELDInvalid field or missing field error.NO_CONFIGURATION_FOUNDInternal server error.NO_SUCH_SERVICEInternal server error.NOT_AUTHORIZEDAuthorization error.NOT_AVAILABLENot available error.NOT_FOUNDNot found error.NOT_IMPLEMENTEDNot implemented error.NOT_VALID"The service id is invalid for the type of service requested".TIMEOUTTime out error.UNKNOWNUnknown error.UNREADABLE_REQUEST"Unreadable request was send to CIS".UNREADABLE_RESPONSE"Unreadable response came from the 3rd party".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardServiceExceptionCodefromCode(java.lang.String c)intgetCode()java.lang.StringgetMessage()java.lang.StringtoString()static StandardServiceExceptionCodesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StandardServiceExceptionCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final StandardServiceExceptionCodes UNKNOWN
Unknown error.
-
NOT_FOUND
public static final StandardServiceExceptionCodes NOT_FOUND
Not found error.
-
NOT_AUTHORIZED
public static final StandardServiceExceptionCodes NOT_AUTHORIZED
Authorization error.
-
INTERNAL_SERVER_ERROR
public static final StandardServiceExceptionCodes INTERNAL_SERVER_ERROR
Internal server error.
-
NO_SUCH_SERVICE
public static final StandardServiceExceptionCodes NO_SUCH_SERVICE
Internal server error.
-
NO_CONFIGURATION_FOUND
public static final StandardServiceExceptionCodes NO_CONFIGURATION_FOUND
Internal server error.
-
NOT_IMPLEMENTED
public static final StandardServiceExceptionCodes NOT_IMPLEMENTED
Not implemented error.
-
NOT_AVAILABLE
public static final StandardServiceExceptionCodes NOT_AVAILABLE
Not available error.
-
TIMEOUT
public static final StandardServiceExceptionCodes TIMEOUT
Time out error.
-
INVALID_OR_MISSING_FIELD
public static final StandardServiceExceptionCodes INVALID_OR_MISSING_FIELD
Invalid field or missing field error.
-
NOT_VALID
public static final StandardServiceExceptionCodes NOT_VALID
"The service id is invalid for the type of service requested".
-
INCOMPLETE_SERVICE_CONFIGURATION
public static final StandardServiceExceptionCodes INCOMPLETE_SERVICE_CONFIGURATION
"The service configuration is missing a required value".
-
ERROR_RESPONSE_FROM_SERVICE
public static final StandardServiceExceptionCodes ERROR_RESPONSE_FROM_SERVICE
"The 3rd party service returned an error".
-
UNREADABLE_RESPONSE
public static final StandardServiceExceptionCodes UNREADABLE_RESPONSE
"Unreadable response came from the 3rd party".
-
UNREADABLE_REQUEST
public static final StandardServiceExceptionCodes UNREADABLE_REQUEST
"Unreadable request was send to CIS".
-
-
Method Detail
-
values
public static StandardServiceExceptionCodes[] 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 (StandardServiceExceptionCodes c : StandardServiceExceptionCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardServiceExceptionCodes valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
- Specified by:
getCodein interfaceStandardServiceExceptionCode
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessagein interfaceStandardServiceExceptionCode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<StandardServiceExceptionCodes>
-
fromCode
public static StandardServiceExceptionCode fromCode(java.lang.String c)
-
-