net.rim.pushsdk.subscription
Class InvalidSubStatusException

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

public class InvalidSubStatusException
extends Exception

Exception thrown when a subscription operation cannot be performed because it is invalid based on the current status of the subscriber.

Author:
mdandrea
See Also:
SubscriberStatus, Serialized Form

Constructor Summary
InvalidSubStatusException(String message)
          Constructs an InvalidSubStatusException with the given error message.
InvalidSubStatusException(SubscriberStatus currentStatus, SubscriptionType subscriptionType)
          Constructs an InvalidSubStatusException with the given current status and subscription operation type.
 
Method Summary
 SubscriberStatus getCurrentStatus()
          Returns the current status of a subscriber that was considered to be invalid based on the operation being performed.
 SubscriptionType getSubscriptionType()
          Returns the type of subscription operation being performed.
 
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

InvalidSubStatusException

public InvalidSubStatusException(SubscriberStatus currentStatus,
                                 SubscriptionType subscriptionType)
Constructs an InvalidSubStatusException with the given current status and subscription operation type.

Parameters:
currentStatus - the current status of the subscriber
subscriptionType - the subscription operation being performed

InvalidSubStatusException

public InvalidSubStatusException(String message)
Constructs an InvalidSubStatusException with the given error message.

Parameters:
message - the error message
Method Detail

getCurrentStatus

public SubscriberStatus getCurrentStatus()
Returns the current status of a subscriber that was considered to be invalid based on the operation being performed.

Returns:
the current status of a subscriber

getSubscriptionType

public SubscriptionType getSubscriptionType()
Returns the type of subscription operation being performed.

Returns:
the subscription operation being performed


Copyright © 2011 Research In Motion. All Rights Reserved.