Class SubscriptionErrorEventArgs
- java.lang.Object
-
- microsoft.exchange.webservices.data.notification.SubscriptionErrorEventArgs
-
public class SubscriptionErrorEventArgs extends Object
Provides data to a StreamingSubscriptionConnection's OnSubscriptionError and OnDisconnect events.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubscriptionErrorEventArgs(StreamingSubscription subscription, Exception exception)Initializes a new instance of the SubscriptionErrorEventArgs class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptiongetException()Gets the exception representing the error.StreamingSubscriptiongetSubscription()Gets the subscription for which an error occurred.protected voidsetException(Exception value)Sets the exception representing the error.protected voidsetSubscription(StreamingSubscription value)Sets the subscription for which an error occurred.
-
-
-
Constructor Detail
-
SubscriptionErrorEventArgs
protected SubscriptionErrorEventArgs(StreamingSubscription subscription, 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 Exception getException()
Gets the exception representing the error. If Exception is null, the connection was cleanly closed by the server.
-
setException
protected void setException(Exception value)
Sets the exception representing the error. If Exception is null, the connection was cleanly closed by the server.
-
-