getLinkedDevices() native api declaration in OcSecureResource.java
requires a throws clause in order to catch a possible exception
from the jni implementation layer.
Change-Id: Ic1e02b0d0f2980c1fd10d59ed48575ea2d7e6734
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21839
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
/** Method to get List of device ID of devices linked with invoking device.
*
* @return Sring List List of device id's of linked devices.
+ * @throws OcException Failed to get linked devices.
+ * Use OcException.GetErrorCode() for more details.
*/
- public native List<String> getLinkedDevices();
+ public native List<String> getLinkedDevices() throws OcException;
/**
* Method to get IP address of sercure discovered device.