public interface BatchChargeEventListener extends ChargeExceptionListener
Java interface has to be implemented by the classes in charge for processing the result
of a batch charge operation; the result may include an exception.
| Async. Comm. |
|---|
batchCharge(..)
specified in the
AsyncBatchServiceClient class
|
| Exception | Reason | Implementation and Customizing | Troubleshooting |
|---|---|---|---|
Communication Failure Exception
| Refer to the details of each exception. | Design and develop the error handling of each exception. | Refer to the details of each exception. |
Illegal Argument Exception
| |||
Server Failure Exception
| |||
Batch Charge Exception
| |||
Forbidden Charge Exception
| |||
Transaction Clearing Exception
| |||
Rerate Subscription exception
|
You implement this Java interface in your custom Java classes that must handle
operation results and exceptions.
Depending on your requirements, design and develop the relevant functions.
Depending on your requirements, design and develop the appropriate onResult(..) methods.
Depending on your requirements, design and develop the appropriate onException(..) methods specified
in this Java interface and in the ChargeExceptionListener interface
See the AcquisitionListener interface in this SAP product documentation.
| Modifier and Type | Method and Description |
|---|---|
void |
onException(BatchChargeException e)
Invoked when the cleanup operation fails because of a
batchChargeException. |
void |
onException(ForbiddenChargeException e)
Invoked if the SAP CC system cannot retrieve the contract (or subscription) or if a parameter operation is badly formed.
|
void |
onException(RerateSubscriptionException e)
Invoked when the rerating operation fails because of a
RerateSubscriptionException. |
void |
onException(TransactionClearingException e)
Invoked when the cleanup operation fails because of a
transactionClearingException. |
void |
onResult(BatchChargeResult result)
Invoked when the cleanup operation is successful.
|
void |
onResult(boolean reratingResult,
int fromSnapshotId,
java.util.Date fromDate) |
onException, onException, onExceptionvoid onException(ForbiddenChargeException e)
e - The Forbidden Charge exception to be handledvoid onException(BatchChargeException e)
batchChargeException.e - The Batch Charge exception to be handledvoid onException(TransactionClearingException e)
transactionClearingException.e - The Transaction Clearing exception to be handledvoid onException(RerateSubscriptionException e)
RerateSubscriptionException.e - The Rerate Subscription exception to be handledvoid onResult(BatchChargeResult result)
result - The result of the cleanup operationvoid onResult(boolean reratingResult,
int fromSnapshotId,
java.util.Date fromDate)