@@ -99,7 +99,7 @@ public void completed(final HttpResponse response) {
9999 try {
100100 int httpStatusCode = response .getStatusLine ().getStatusCode ();
101101 if (httpStatusCode != 200 ) {
102- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
102+ callback .failed (NotificationHubsException . create (response ,
103103 httpStatusCode ));
104104 return ;
105105 }
@@ -164,7 +164,7 @@ public void completed(final HttpResponse response) {
164164 try {
165165 int httpStatusCode = response .getStatusLine ().getStatusCode ();
166166 if (httpStatusCode != 201 ) {
167- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
167+ callback .failed (NotificationHubsException . create (response ,
168168 httpStatusCode ));
169169 return ;
170170 }
@@ -242,7 +242,7 @@ public void completed(final HttpResponse response) {
242242 try {
243243 int httpStatusCode = response .getStatusLine ().getStatusCode ();
244244 if (httpStatusCode != 200 ) {
245- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
245+ callback .failed (NotificationHubsException . create (response ,
246246 httpStatusCode ));
247247 return ;
248248 }
@@ -314,7 +314,7 @@ public void completed(final HttpResponse response) {
314314 try {
315315 int httpStatusCode = response .getStatusLine ().getStatusCode ();
316316 if (httpStatusCode != 200 ) {
317- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
317+ callback .failed (NotificationHubsException . create (response ,
318318 httpStatusCode ));
319319 return ;
320320 }
@@ -409,7 +409,7 @@ public void completed(final HttpResponse response) {
409409 try {
410410 int httpStatusCode = response .getStatusLine ().getStatusCode ();
411411 if (httpStatusCode != 200 && httpStatusCode != 404 ) {
412- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
412+ callback .failed (NotificationHubsException . create (response ,
413413 httpStatusCode ));
414414 return ;
415415 }
@@ -471,7 +471,7 @@ public void completed(final HttpResponse response) {
471471 try {
472472 int httpStatusCode = response .getStatusLine ().getStatusCode ();
473473 if (httpStatusCode != 200 ) {
474- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
474+ callback .failed (NotificationHubsException . create (response ,
475475 httpStatusCode ));
476476 return ;
477477 }
@@ -730,7 +730,7 @@ public void completed(final HttpResponse response) {
730730 try {
731731 int httpStatusCode = response .getStatusLine ().getStatusCode ();
732732 if (httpStatusCode != 200 ) {
733- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
733+ callback .failed (NotificationHubsException . create (response ,
734734 httpStatusCode ));
735735 return ;
736736 }
@@ -972,7 +972,7 @@ public void completed(final HttpResponse response) {
972972 msg = IOUtils .toString (response .getEntity ().getContent (), StandardCharsets .UTF_8 );
973973 }
974974 msg = "Error: " + response .getStatusLine () + " body: " + msg ;
975- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response , httpStatusCode , msg ));
975+ callback .failed (NotificationHubsException . create (response , httpStatusCode , msg ));
976976 return ;
977977 }
978978
@@ -1056,7 +1056,7 @@ public void completed(final HttpResponse response) {
10561056 try {
10571057 int httpStatusCode = response .getStatusLine ().getStatusCode ();
10581058 if (httpStatusCode != 200 && httpStatusCode != 404 ) {
1059- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1059+ callback .failed (NotificationHubsException . create (response ,
10601060 httpStatusCode ));
10611061 return ;
10621062 }
@@ -1153,7 +1153,7 @@ public void completed(final HttpResponse response) {
11531153 msg = IOUtils .toString (response .getEntity ().getContent (), StandardCharsets .UTF_8 );
11541154 }
11551155 msg = "Error: " + response .getStatusLine () + " body: " + msg ;
1156- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response , httpStatusCode , msg ));
1156+ callback .failed (NotificationHubsException . create (response , httpStatusCode , msg ));
11571157 return ;
11581158 }
11591159
@@ -1240,7 +1240,7 @@ public void completed(final HttpResponse response) {
12401240 msg = IOUtils .toString (response .getEntity ().getContent (), StandardCharsets .UTF_8 );
12411241 }
12421242 msg = "Error: " + response .getStatusLine () + " body: " + msg ;
1243- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response , httpStatusCode , msg ));
1243+ callback .failed (NotificationHubsException . create (response , httpStatusCode , msg ));
12441244 return ;
12451245 }
12461246
@@ -1310,7 +1310,7 @@ public void completed(final HttpResponse response) {
13101310 try {
13111311 int httpStatusCode = response .getStatusLine ().getStatusCode ();
13121312 if (httpStatusCode != 200 ) {
1313- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1313+ callback .failed (NotificationHubsException . create (response ,
13141314 httpStatusCode ));
13151315 return ;
13161316 }
@@ -1361,7 +1361,7 @@ public void completed(final HttpResponse response) {
13611361 try {
13621362 int httpStatusCode = response .getStatusLine ().getStatusCode ();
13631363 if (httpStatusCode != 200 ) {
1364- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1364+ callback .failed (NotificationHubsException . create (response ,
13651365 httpStatusCode ));
13661366 return ;
13671367 }
@@ -1470,7 +1470,7 @@ public void completed(final HttpResponse response) {
14701470 try {
14711471 int httpStatusCode = response .getStatusLine ().getStatusCode ();
14721472 if (httpStatusCode != 200 ) {
1473- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1473+ callback .failed (NotificationHubsException . create (response ,
14741474 httpStatusCode ));
14751475 return ;
14761476 }
@@ -1517,7 +1517,7 @@ public void completed(final HttpResponse response) {
15171517 try {
15181518 int httpStatusCode = response .getStatusLine ().getStatusCode ();
15191519 if (httpStatusCode != 204 ) {
1520- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1520+ callback .failed (NotificationHubsException . create (response ,
15211521 httpStatusCode ));
15221522 return ;
15231523 }
@@ -1579,7 +1579,7 @@ public void completed(final HttpResponse response) {
15791579 try {
15801580 int httpStatusCode = response .getStatusLine ().getStatusCode ();
15811581 if (httpStatusCode != 200 ) {
1582- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1582+ callback .failed (NotificationHubsException . create (response ,
15831583 httpStatusCode ));
15841584 return ;
15851585 }
@@ -1646,7 +1646,7 @@ public void completed(final HttpResponse response) {
16461646 try {
16471647 int httpStatusCode = response .getStatusLine ().getStatusCode ();
16481648 if (httpStatusCode != 201 ) {
1649- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1649+ callback .failed (NotificationHubsException . create (response ,
16501650 httpStatusCode ));
16511651 return ;
16521652 }
@@ -1708,7 +1708,7 @@ public void completed(final HttpResponse response) {
17081708 try {
17091709 int httpStatusCode = response .getStatusLine ().getStatusCode ();
17101710 if (httpStatusCode != 200 ) {
1711- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1711+ callback .failed (NotificationHubsException . create (response ,
17121712 httpStatusCode ));
17131713 return ;
17141714 }
@@ -1769,7 +1769,7 @@ public void completed(final HttpResponse response) {
17691769 try {
17701770 int httpStatusCode = response .getStatusLine ().getStatusCode ();
17711771 if (httpStatusCode != 200 ) {
1772- callback .failed (NotificationHubsExceptionFactory . createNotificationHubException (response ,
1772+ callback .failed (NotificationHubsException . create (response ,
17731773 httpStatusCode ));
17741774 return ;
17751775 }
0 commit comments