net.rim.pushsdk.commons
Class PushSDKException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.rim.pushsdk.commons.PushSDKException
All Implemented Interfaces:
Serializable

public class PushSDKException
extends Exception

High level exception thrown by many of the SDK's public methods.

Generally, it is used to wrap lower level exceptions that usually, but not always, represent unrecoverable exceptional situations. So, rather than public methods throwing many lower level exceptions in their APIs that would need to be caught, those can now be handled with one catch statement.

If a lower level exception is being wrapped, you can access that exception using the getCause() method.

Author:
mdandrea
See Also:
Serialized Form

Constructor Summary
PushSDKException(String message)
          Constructs a PushSDKException with an error message.
PushSDKException(String message, Throwable cause)
          Constructs a PushSDKException with the given error message and wrapping a throwable.
PushSDKException(Throwable cause)
          Constructs a PushSDKException wrapping a throwable.
 
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

PushSDKException

public PushSDKException(String message)
Constructs a PushSDKException with an error message.

Parameters:
message - an error message

PushSDKException

public PushSDKException(Throwable cause)
Constructs a PushSDKException wrapping a throwable.

Parameters:
cause - the throwable to be wrapped

PushSDKException

public PushSDKException(String message,
                        Throwable cause)
Constructs a PushSDKException with the given error message and wrapping a throwable.

Parameters:
message - an error message
cause - the throwable to be wrapped


Copyright © 2011 Research In Motion. All Rights Reserved.