|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.rimlib.blackberry.api.paymentsdk.PaymentException
public class PaymentException
Thrown when a generic failure occurs with one of the PaymentEngine
methods. Since all other exceptions specified in the Payment Service API are
subclasses of PaymentException, if you want to handle all exceptions the same
way, you only need to catch PaymentException to do so. If you want to handle
each exception uniquely, you can catch PaymentServerException,
DigitalGoodNotFoundException, UserCancelException, and
IllegalApplicationException separately.
| Field Summary |
|---|
| Fields inherited from interface net.rimlib.blackberry.api.paymentsdk.ResultCodes |
|---|
REASON_APP_WORLD_NOT_CORRECT_VERSION, REASON_ARGUMENTS_ERROR, REASON_CANCELED, REASON_GOOD_NOT_FOUND, REASON_ILLEGAL_APPLICATION, REASON_NONE, REASON_SERVER_ERROR, REASON_UNKNOWN |
| Constructor Summary | |
|---|---|
PaymentException(java.lang.String message)
Creates an exception with the given detail message. |
|
PaymentException(java.lang.String message,
int failureReasonIn)
Creates an exception with the given detail message. |
|
PaymentException(java.lang.String message,
Invocation invocation)
Creates an exception with the given Invocation data. |
|
| Method Summary | |
|---|---|
Invocation |
getFailureInvocation()
Retrieves the response of the failed invocation |
int |
getFailureReason()
Retrieves a constant representing the reason this result is unsuccessful, or REASON_NONE
if this result is successful. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PaymentException(java.lang.String message)
message - The detail message.
public PaymentException(java.lang.String message,
int failureReasonIn)
message - The detail message.failureReasonIn - One of the REASON_* constants in this interface .
public PaymentException(java.lang.String message,
Invocation invocation)
Invocation data.
message - The detail message.invocation - The invocation that caused the exception.| Method Detail |
|---|
public int getFailureReason()
REASON_NONE
if this result is successful.
REASON_* constants. If this result is successful, then REASON_NONE
is returned.public Invocation getFailureInvocation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||