Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #67 from miketran78727/master
Browse files Browse the repository at this point in the history
Correct error handling in addDeviceManagementExtension() method
  • Loading branch information
sathipal authored Sep 27, 2016
2 parents cb7c00c + dd508a1 commit 50a2b15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/ibm/iotf/client/api/APIClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2379,6 +2379,8 @@ public JsonObject addDeviceManagementExtension(String request) throws IoTFCReSTE
} else {
throw new IoTFCReSTException(code, "Unexpected error");
}
} catch (IoTFCReSTException e) {
throw e;
} catch (Exception e) {
// This includes JsonSyntaxException
IoTFCReSTException ex = new IoTFCReSTException("Failure in adding the Device Management Extension "
Expand Down

0 comments on commit 50a2b15

Please sign in to comment.