I'm writing code that calls the following method that exists in Windows.Networking.PushNotifications
// Summary:
// Creates objects that you use to retrieve push notification channels from
// the Windows Push Notification Services (WNS). These channels are bound to
// an app or secondary tile.
[Threading(ThreadingModel.MTA)]
[Version(100794368)]
public static class PushNotificationChannelManager
{
// Summary:
// Creates an object, bound to the calling app, through which you retrieve a
// push notification channel from Windows Push Notification Services (WNS).
//
// Returns:
// The object, bound to the calling app, that is used to request a PushNotificationChannel
// from the Windows Push Notification Services (WNS).
[Overload("CreatePushNotificationChannelForApplicationAsync")]
public static IAsyncOperation<PushNotificationChannel> CreatePushNotificationChannelForApplicationAsync();
}
I want to be sure to cover all cases where exceptions can be thrown and deal with each appropriately. Is it possible for me to get a list of the different types of exceptions this can throw and different circumstances which could cause them?
I don't want to just have a catch-all
catch(Exception ex) { }
This MSDN article states that "An exception is thrown if you attempt to register a WNS push notification channel when there is no data connection". However it doesn't state what type of exception or if there are other cases when an exception can be thrown.
How can I find out if there are other possible exception types?