public static enum AcquisitionException.AcquisitionExceptionReason extends java.lang.Enum<AcquisitionException.AcquisitionExceptionReason>
enumeration defines the possible reasons for the failure of a direct acquisition operation of chargeable items.
Consider the Constant Detail section for more information about:
| Enum Constant and Description |
|---|
ACCESS_NOT_FOUND
4: Error when the service identifier (SID), user service identifier (USID), and consumption date specified in the operation request, do not
correspond to an existing access data in customer master data of the service provider.
|
ACQUISITION_NOT_ALLOWED
7: Error when the acquisition operation request is not allowed.
|
COMMUNICATION_FAILURE
0: Error when a communication failure occurred during the acquisition of the chargeable item.
|
EXPORT_FAILURE
6: Error when the chargeable item could not be exported.
|
INVALID_ACCESS
2: Error when one of the access information subelements specified in the operation request (service identifier (SID), user service-identifier (USID), or consumption date) is empty.
|
INVALID_CHARGEABLE_ITEM
3: Error when the chargeable item to acquire is not specified in the operation request or its name is empty.
|
SERVER_FAILURE
1: Error when an unexpected error occurred during the acquisition of the chargeable item.
|
TARGET_NOT_FOUND
5: Error when the provider contract (or subscription) targeted by the access cannot be found in customer master data of the service provider.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumericCode()
Gets the numeric code of the exception reason.
|
java.lang.String |
getStringCode()
Gets the string code of the exception reason.
|
static AcquisitionException.AcquisitionExceptionReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AcquisitionException.AcquisitionExceptionReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcquisitionException.AcquisitionExceptionReason COMMUNICATION_FAILURE
Design your implementation.
public static final AcquisitionException.AcquisitionExceptionReason SERVER_FAILURE
Design your implementation.
public static final AcquisitionException.AcquisitionExceptionReason INVALID_ACCESS
Design your implementation.
public static final AcquisitionException.AcquisitionExceptionReason INVALID_CHARGEABLE_ITEM
public static final AcquisitionException.AcquisitionExceptionReason ACCESS_NOT_FOUND
public static final AcquisitionException.AcquisitionExceptionReason TARGET_NOT_FOUND
public static final AcquisitionException.AcquisitionExceptionReason EXPORT_FAILURE
public static final AcquisitionException.AcquisitionExceptionReason ACQUISITION_NOT_ALLOWED
public static AcquisitionException.AcquisitionExceptionReason[] values()
for (AcquisitionException.AcquisitionExceptionReason c : AcquisitionException.AcquisitionExceptionReason.values()) System.out.println(c);
public static AcquisitionException.AcquisitionExceptionReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getNumericCode()
public java.lang.String getStringCode()