Enum ShippingServiceExceptionCodes
- java.lang.Object
-
- java.lang.Enum<ShippingServiceExceptionCodes>
-
- com.hybris.cis.client.shipping.exception.ShippingServiceExceptionCodes
-
- All Implemented Interfaces:
StandardServiceExceptionCode,java.io.Serializable,java.lang.Comparable<ShippingServiceExceptionCodes>
public enum ShippingServiceExceptionCodes extends java.lang.Enum<ShippingServiceExceptionCodes> implements StandardServiceExceptionCode
Shipping api service exception codes (range 5000 - 5999).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_TYPE_MISSING"The content type is missing".DELIVERY_SERVICE_NOT_AVAILABLE_FOR_THIS_SERVICE_METHOD"The delivery confirmation service is not available for this service method".INCOMPATIBLE_WEIGHT_UNIT"The service used does not accept the specified weight unit".PACKAGE_DIMENSIONS_INVALID"The dimensions of the package is invalid".PACKAGE_MISSING"The package is missing".PACKAGE_TYPE_MISSING"The type is not set on the package".SHIP_FROM_ADDRESS_INVALID"The ship from address is invalid".SHIP_FROM_ADDRESS_MISSING"The ship from address is missing".SHIP_TO_ADDRESS_INVALID"The ship to address is invalid".SHIP_TO_ADDRESS_MISSING"The ship to address is missing".SHIPPER_NUMBER_INVALID"The Shippers shipper number cannot be used for the shipment".SHIPPING_METHOD_INVALID"Shipping method is invalid".SHIPPING_METHOD_MISSING"Shipping method is missing".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetMessage()java.lang.StringtoString()static ShippingServiceExceptionCodesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ShippingServiceExceptionCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHIP_TO_ADDRESS_INVALID
public static final ShippingServiceExceptionCodes SHIP_TO_ADDRESS_INVALID
"The ship to address is invalid".
-
SHIP_TO_ADDRESS_MISSING
public static final ShippingServiceExceptionCodes SHIP_TO_ADDRESS_MISSING
"The ship to address is missing".
-
SHIP_FROM_ADDRESS_INVALID
public static final ShippingServiceExceptionCodes SHIP_FROM_ADDRESS_INVALID
"The ship from address is invalid".
-
SHIP_FROM_ADDRESS_MISSING
public static final ShippingServiceExceptionCodes SHIP_FROM_ADDRESS_MISSING
"The ship from address is missing".
-
PACKAGE_MISSING
public static final ShippingServiceExceptionCodes PACKAGE_MISSING
"The package is missing".
-
PACKAGE_DIMENSIONS_INVALID
public static final ShippingServiceExceptionCodes PACKAGE_DIMENSIONS_INVALID
"The dimensions of the package is invalid".
-
SHIPPING_METHOD_INVALID
public static final ShippingServiceExceptionCodes SHIPPING_METHOD_INVALID
"Shipping method is invalid".
-
SHIPPING_METHOD_MISSING
public static final ShippingServiceExceptionCodes SHIPPING_METHOD_MISSING
"Shipping method is missing".
-
INCOMPATIBLE_WEIGHT_UNIT
public static final ShippingServiceExceptionCodes INCOMPATIBLE_WEIGHT_UNIT
"The service used does not accept the specified weight unit".
-
CONTENT_TYPE_MISSING
public static final ShippingServiceExceptionCodes CONTENT_TYPE_MISSING
"The content type is missing".
-
DELIVERY_SERVICE_NOT_AVAILABLE_FOR_THIS_SERVICE_METHOD
public static final ShippingServiceExceptionCodes DELIVERY_SERVICE_NOT_AVAILABLE_FOR_THIS_SERVICE_METHOD
"The delivery confirmation service is not available for this service method".
-
SHIPPER_NUMBER_INVALID
public static final ShippingServiceExceptionCodes SHIPPER_NUMBER_INVALID
"The Shippers shipper number cannot be used for the shipment".
-
PACKAGE_TYPE_MISSING
public static final ShippingServiceExceptionCodes PACKAGE_TYPE_MISSING
"The type is not set on the package".
-
-
Method Detail
-
values
public static ShippingServiceExceptionCodes[] 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 (ShippingServiceExceptionCodes c : ShippingServiceExceptionCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShippingServiceExceptionCodes 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<ShippingServiceExceptionCodes>
-
-