net.rimlib.blackberry.api.payment
Class PaymentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.rimlib.blackberry.api.payment.PaymentException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DigitalGoodNotFoundException, IllegalApplicationException, PaymentServerException, UserCancelException
public class PaymentException
- extends Exception
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
PaymentException
public PaymentException(String message)
- Creates an exception with the given detail message.
- Parameters:
message
- The detail message.
Copyright © 2010 Research In Motion Limited. All Rights Reserved.