5 instantiations of PeerToPeerException
System.Net (5)
net\PeerToPeer\Collaboration\Peer.cs (1)
1333
inviteCompletedArgs = new InviteCompletedEventArgs(null, (m_latestException != null ? m_latestException : new
PeerToPeerException
("InviteAsync failure.")), false,
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
247
throw new
PeerToPeerException
("No application guid defined"); }
net\PeerToPeer\PeerToPeerException.cs (3)
113
p2pEx = new
PeerToPeerException
(message, new Win32Exception(hr, NativeMessage));
117
p2pEx = new
PeerToPeerException
(message, Marshal.GetExceptionForHR(hr));
138
p2pEx = new
PeerToPeerException
(message + "Underlying native error " + hr);
103 references to PeerToPeerException
System.Net (103)
net\PeerToPeer\Cloud.cs (1)
219
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotEnumerateClouds), result);
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (6)
47
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_StartupFailed), errorCode);
158
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_CredentialsError), win32ErrorCode);
207
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_CredentialsError), win32ErrorCode);
464
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_PresenceChangedRegFailed), errorCode);
522
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ApplicationChangedRegFailed), errorCode);
581
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectChangedRegFailed), errorCode);
net\PeerToPeer\Collaboration\ContactManager.cs (21)
268
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_SubListChangedRegFailed), errorCode);
334
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetSubListChangedDataFailed), errorCode);
469
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_NameChangedRegFailed), errorCode);
534
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetNameChangedDataFailed), errorCode);
675
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_PresenceChangedRegFailed), errorCode);
741
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPresenceChangedDataFailed), errorCode);
889
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ApplicationChangedRegFailed), errorCode);
960
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetApplicationChangedDataFailed), errorCode);
1103
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectChangedRegFailed), errorCode);
1172
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectChangedDataFailed), errorCode);
1263
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetContactsFailed), errorCode);
1269
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetContactsFailed), errorCode);
1282
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetContactsFailed), errorCode);
1351
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetContactFailed), errorCode);
1428
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_CreateContactFailed), errorCode);
1438
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_CreateContactFailed), errorCode);
1573
catch (
PeerToPeerException
e){
1639
catch (
PeerToPeerException
e){
1668
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_AddContactFailed), errorCode);
1724
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_DeleteContactFailed), errorCode));
1775
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_UpdateContactFailed), errorCode));
net\PeerToPeer\Collaboration\MyContact.cs (6)
103
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_PresenceChangedRegFailed), errorCode);
178
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPresenceChangedDataFailed), errorCode);
269
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ApplicationChangedRegFailed), errorCode);
344
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetApplicationChangedDataFailed), errorCode);
434
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectChangedRegFailed), errorCode);
512
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectChangedDataFailed), errorCode);
net\PeerToPeer\Collaboration\Peer.cs (8)
398
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPresenceFailed), errorCode);
566
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectsFailed), errorCode);
572
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectsFailed), errorCode);
585
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectsFailed), errorCode);
745
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_InviteFailed), errorCode);
1118
catch (
PeerToPeerException
){
1211
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_AsyncInviteFailed), errorCode);
1254
m_latestException =
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_AsyncInviteException), errorCode);
net\PeerToPeer\Collaboration\PeerApplication.cs (2)
283
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ApplicationChangedRegFailed), errorCode);
376
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetApplicationChangedDataFailed), errorCode);
net\PeerToPeer\Collaboration\PeerCollaboration.cs (21)
94
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_SetLocalPresenceFailed), errorCode));
149
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_SetLocalEndPointNameFailed), errorCode);
337
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_SignInFailed), errorCode));
364
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_SignOutFailed), errorCode));
410
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPeersNearMeFailed), errorCode);
416
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPeersNearMeFailed), errorCode);
546
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_AppRegFailed), errorCode));
592
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_AppUnregFailed), errorCode));
687
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetLocalAppsFailed), errorCode));
693
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetLocalAppsFailed), errorCode));
707
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetLocalAppsFailed), errorCode));
843
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectSetFailed), errorCode));
874
throw (
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectDeleteFailed), errorCode));
917
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetLocalObjectsFailed), errorCode);
923
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetLocalObjectsFailed), errorCode);
937
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetLocalObjectsFailed), errorCode);
1065
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_NameChangedRegFailed), errorCode);
1130
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetNameChangedDataFailed), errorCode);
1289
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPresenceChangedDataFailed), errorCode);
1460
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectChangedDataFailed), errorCode);
1622
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetApplicationChangedDataFailed), errorCode);
net\PeerToPeer\Collaboration\PeerContact.cs (11)
362
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ContactToXmlFailed), errorCode);
401
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ContactFromXmlFailed), errorCode);
1052
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetAppsFailed), errorCode);
1058
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetAppsFailed), errorCode);
1072
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetAppsFailed), errorCode);
1258
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ApplicationChangedRegFailed), errorCode);
1351
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetApplicationChangedDataFailed), errorCode);
1508
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectChangedRegFailed), errorCode);
1602
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectChangedDataFailed), errorCode);
1762
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_PresenceChangedRegFailed), errorCode);
1854
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPresenceChangedDataFailed), errorCode);
net\PeerToPeer\Collaboration\PeerEndPoint.cs (2)
242
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_NameChangedRegFailed), errorCode);
312
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetNameChangedDataFailed), errorCode);
net\PeerToPeer\Collaboration\PeerNearMe.cs (6)
261
exception =
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ReqStatusChangedRegFailed), errorCode);
292
exception =
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_RefreshDataFailed), errorCode);
313
exception =
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_RefreshDataFailed), statusData.hrChange);
404
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_RefreshDataFailed), errorCode);
581
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_PeerNearMeChangedRegFailed), errorCode);
647
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetPeerNearMeChangedDataFailed), errorCode);
net\PeerToPeer\Collaboration\PeerObject.cs (2)
232
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_ObjectChangedRegFailed), errorCode);
321
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Collab_GetObjectChangedDataFailed), errorCode);
net\PeerToPeer\PeerName.cs (6)
162
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotCreateUnsecuredPeerName), result);
171
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotGetDefaultIdentity), result);
179
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotCreateSecuredPeerName), result);
225
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotGetPeerNameFromPeerHostName), result);
301
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotCreateRelativePeerName), result);
403
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotGetPeerHostNameFromPeerName), result);
net\PeerToPeer\PeerNameRegistration.cs (4)
381
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotRegisterPeerName), result);
413
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotRegisterPeerName), result);
563
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotRegisterPeerName), result);
594
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotRegisterPeerName), result);
net\PeerToPeer\PeerNameResolver.cs (5)
230
PeerToPeerException
ex =
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotStartNameResolution), result);
372
PeerToPeerException
ex =
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_ExceptionWhileResolvingAPeerName), result);
655
throw
PeerToPeerException
.CreateFromHr(SR.GetString(SR.Pnrp_CouldNotStartNameResolution), result);
net\PeerToPeer\PeerToPeerException.cs (2)
93
internal static
PeerToPeerException
CreateFromHr(string message, Int32 hr)
95
PeerToPeerException
p2pEx = null;