net.rim.device.api.io.messaging
Class MessageFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.rim.device.api.io.messaging.MessagingException
              extended by net.rim.device.api.io.messaging.MessageFailureException
Direct Known Subclasses:
MessageProcessorException

public class MessageFailureException
extends MessagingException

Exception generated by failure to send a Message. Failure could be due to interrupted connection, invalid address, HTTP 500 error, etc.

Since:
BlackBerry API 6.0.0

Constructor Summary
MessageFailureException(String reason)
          Constructs a new MessageFailureException.
MessageFailureException(String reason, int messageID)
          Constructs a new MessageFailureException.
 
Method Summary
 int getCorrelatedMessageId()
          Return the ID of the Message that generated this failure.
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 



Constructor Detail

MessageFailureException

public MessageFailureException(String reason,
                               int messageID)
Constructs a new MessageFailureException.

Parameters:
reason - Description of the reason for the message failure.
messageID - ID of the Message that generated this failure.
Since:
BlackBerry API 6.0.0

MessageFailureException

public MessageFailureException(String reason)
Constructs a new MessageFailureException.

Parameters:
reason - Description of the reason for the message failure.
Since:
BlackBerry API 6.0.0


Method Detail

getCorrelatedMessageId

public int getCorrelatedMessageId()
Return the ID of the Message that generated this failure.

Returns:
ID of the Message that generated this failure.
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.