net.rim.pushsdk.pap.unmarshal
Class BadMessageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.rim.pushsdk.pap.unmarshal.BadMessageException
All Implemented Interfaces:
Serializable

public class BadMessageException
extends Exception

If the PAP message was rejected by the PPG, this exception will be thrown with the details from the PAP badmessage-response message.

Author:
mdicesare
See Also:
Serialized Form

Constructor Summary
BadMessageException(BadMessageResponse badMessageResponse)
          Constructs a BadMessageException with the given bad message response.
BadMessageException(String message, BadMessageResponse badMessageResponse)
          Constructs a BadMessageException with the given error message and bad message response.
 
Method Summary
 BadMessageResponse getBadMessageResponse()
          Gets the bad message response associated with this exception.
 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

BadMessageException

public BadMessageException(String message,
                           BadMessageResponse badMessageResponse)
Constructs a BadMessageException with the given error message and bad message response.

Parameters:
message - an error message
badMessageResponse - a bad message response

BadMessageException

public BadMessageException(BadMessageResponse badMessageResponse)
Constructs a BadMessageException with the given bad message response.

Parameters:
badMessageResponse - a bad message response
Method Detail

getBadMessageResponse

public BadMessageResponse getBadMessageResponse()
Gets the bad message response associated with this exception.

Returns:
the bad message response

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.