Enum TaxServiceExceptionCodes
- java.lang.Object
-
- java.lang.Enum<TaxServiceExceptionCodes>
-
- com.hybris.cis.client.tax.exception.TaxServiceExceptionCodes
-
- All Implemented Interfaces:
StandardServiceExceptionCode,java.io.Serializable,java.lang.Comparable<TaxServiceExceptionCodes>
public enum TaxServiceExceptionCodes extends java.lang.Enum<TaxServiceExceptionCodes> implements StandardServiceExceptionCode
The standard exception codes for tax services (Range 3000 - 3999).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SHIP_TO_MISSING"Ship to address missing".TAXES_NOT_CALCULATED"Taxes could not be calculated, the 3rd party servire returned an error".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetMessage()java.lang.StringtoString()static TaxServiceExceptionCodesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TaxServiceExceptionCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHIP_TO_MISSING
public static final TaxServiceExceptionCodes SHIP_TO_MISSING
"Ship to address missing".
-
TAXES_NOT_CALCULATED
public static final TaxServiceExceptionCodes TAXES_NOT_CALCULATED
"Taxes could not be calculated, the 3rd party servire returned an error".
-
-
Method Detail
-
values
public static TaxServiceExceptionCodes[] 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 (TaxServiceExceptionCodes c : TaxServiceExceptionCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaxServiceExceptionCodes 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<TaxServiceExceptionCodes>
-
-