net.rim.pushsdk.query.subscription
Class SubQueryFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.rim.pushsdk.query.subscription.SubQueryFailureException
All Implemented Interfaces:
Serializable

public class SubQueryFailureException
extends Exception

This exception is thrown when a subscription query XML request message cannot be processed successfully by the PPG. This might be the result of a bad XML request or if errors were encountered while processing the request.

Author:
mdandrea
See Also:
Serialized Form

Constructor Summary
SubQueryFailureException(String failureCode, String failureDescription)
          Constructs a SubQueryFailureException with the given failure code and description and a default error message indicating that the request was not processed successfully.
SubQueryFailureException(String message, String failureCode, String failureDescription)
          Constructs a SubQueryFailureException with the given error message, failure code and description.
 
Method Summary
 String getFailureCode()
          Gets the failure code indicating why the query failed.
 String getFailureDescription()
          Gets the failure description indicating why the query failed.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubQueryFailureException

public SubQueryFailureException(String message,
                                String failureCode,
                                String failureDescription)
Constructs a SubQueryFailureException with the given error message, failure code and description.

Parameters:
message - an error message
failureCode - a code indicating why the query failed
failureDescription - a textual description of why the query failed

SubQueryFailureException

public SubQueryFailureException(String failureCode,
                                String failureDescription)
Constructs a SubQueryFailureException with the given failure code and description and a default error message indicating that the request was not processed successfully.

Parameters:
failureCode - a code indicating why the query failed
failureDescription - a textual description of why the query failed
Method Detail

getFailureCode

public String getFailureCode()
Gets the failure code indicating why the query failed.

Returns:
the failure code

getFailureDescription

public String getFailureDescription()
Gets the failure description indicating why the query failed.

Returns:
the failure description

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Throwable
Returns:
a String representation of this object.


Copyright © 2011 Research In Motion. All Rights Reserved.