com.highdeal.pnr.hci
Enum AcquisitionException.AcquisitionExceptionReason

java.lang.Object
  extended by java.lang.Enum<AcquisitionException.AcquisitionExceptionReason>
      extended by com.highdeal.pnr.hci.AcquisitionException.AcquisitionExceptionReason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AcquisitionException.AcquisitionExceptionReason>
Enclosing class:
AcquisitionException

public static enum AcquisitionException.AcquisitionExceptionReason
extends java.lang.Enum<AcquisitionException.AcquisitionExceptionReason>

This 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 Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COMMUNICATION_FAILURE

public static final AcquisitionException.AcquisitionExceptionReason COMMUNICATION_FAILURE
0: Error when a communication failure occurred during the acquisition of the chargeable item.
Customizing

Design your implementation.

Next Steps


SERVER_FAILURE

public static final AcquisitionException.AcquisitionExceptionReason SERVER_FAILURE
1: Error when an unexpected error occurred during the acquisition of the chargeable item.
Customizing

Design your implementation.

Next Steps


INVALID_ACCESS

public static final AcquisitionException.AcquisitionExceptionReason 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.
Customizing

Design your implementation.

Next Steps


INVALID_CHARGEABLE_ITEM

public static final AcquisitionException.AcquisitionExceptionReason INVALID_CHARGEABLE_ITEM
3: Error when the chargeable item to acquire is not specified in the operation request or its name is empty.


ACCESS_NOT_FOUND

public static final AcquisitionException.AcquisitionExceptionReason 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.


TARGET_NOT_FOUND

public static final AcquisitionException.AcquisitionExceptionReason 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.


EXPORT_FAILURE

public static final AcquisitionException.AcquisitionExceptionReason EXPORT_FAILURE
6: Error when the chargeable item could not be exported.


ACQUISITION_NOT_ALLOWED

public static final AcquisitionException.AcquisitionExceptionReason ACQUISITION_NOT_ALLOWED
7: Error when the acquisition operation request is not allowed.

Method Detail

values

public static AcquisitionException.AcquisitionExceptionReason[] 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 (AcquisitionException.AcquisitionExceptionReason c : AcquisitionException.AcquisitionExceptionReason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AcquisitionException.AcquisitionExceptionReason 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 name
java.lang.NullPointerException - if the argument is null

getNumericCode

public int getNumericCode()
Gets the numeric code of the exception reason.

Returns:
The numerical code of the exception reason

getStringCode

public java.lang.String getStringCode()
Gets the string code of the exception reason.

Returns:
The string code of the exception reason

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)