net.rimlib.blackberry.api.payment
Class PaymentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
PaymentException(String message)
          Creates an exception with the given detail message.
 
Method Summary
 
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

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.