Enum WebServiceExceptionCodes
- java.lang.Object
-
- java.lang.Enum<WebServiceExceptionCodes>
-
- com.hybris.cis.client.shared.exception.codes.WebServiceExceptionCodes
-
- All Implemented Interfaces:
StandardServiceExceptionCode,java.io.Serializable,java.lang.Comparable<WebServiceExceptionCodes>
public enum WebServiceExceptionCodes extends java.lang.Enum<WebServiceExceptionCodes> implements StandardServiceExceptionCode
Web exception codes (range 9000 - 9999).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MISSING_CLIENT_REF_ID"Client reference ID not found".UNMARSHALL_EXCEPTION"Exception during unmarshalling".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetMessage()java.lang.StringtoString()static WebServiceExceptionCodesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WebServiceExceptionCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNMARSHALL_EXCEPTION
public static final WebServiceExceptionCodes UNMARSHALL_EXCEPTION
"Exception during unmarshalling".
-
MISSING_CLIENT_REF_ID
public static final WebServiceExceptionCodes MISSING_CLIENT_REF_ID
"Client reference ID not found".
-
-
Method Detail
-
values
public static WebServiceExceptionCodes[] 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 (WebServiceExceptionCodes c : WebServiceExceptionCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebServiceExceptionCodes 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<WebServiceExceptionCodes>
-
-