microsoft.exchange.webservices.data
Class SubscriptionErrorEventArgs

java.lang.Object
  extended by microsoft.exchange.webservices.data.SubscriptionErrorEventArgs

public class SubscriptionErrorEventArgs
extends java.lang.Object

Provides data to a StreamingSubscriptionConnection's OnSubscriptionError and OnDisconnect events.


Constructor Summary
protected SubscriptionErrorEventArgs(StreamingSubscription subscription, java.lang.Exception exception)
          Initializes a new instance of the SubscriptionErrorEventArgs class.
 
Method Summary
 java.lang.Exception getException()
          Gets the exception representing the error.
 StreamingSubscription getSubscription()
          Gets the subscription for which an error occurred.
protected  void setException(java.lang.Exception value)
          Sets the exception representing the error.
protected  void setSubscription(StreamingSubscription value)
          Sets the subscription for which an error occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionErrorEventArgs

protected SubscriptionErrorEventArgs(StreamingSubscription subscription,
                                     java.lang.Exception exception)
Initializes a new instance of the SubscriptionErrorEventArgs class.

Parameters:
subscription - The subscription for which an error occurred. If subscription is null, the error applies to the entire connection.
exception - The exception representing the error. If exception is null, the connection was cleanly closed by the server.
Method Detail

getSubscription

public StreamingSubscription getSubscription()
Gets the subscription for which an error occurred. If Subscription is null, the error applies to the entire connection.


setSubscription

protected void setSubscription(StreamingSubscription value)
Sets the subscription for which an error occurred. If Subscription is null, the error applies to the entire connection.


getException

public java.lang.Exception getException()
Gets the exception representing the error. If Exception is null, the connection was cleanly closed by the server.


setException

protected void setException(java.lang.Exception value)
Sets the exception representing the error. If Exception is null, the connection was cleanly closed by the server.