android: add misssing error codes to stackResultToStr()
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Thu, 17 Sep 2015 16:51:33 +0000 (18:51 +0200)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Tue, 22 Sep 2015 16:30:29 +0000 (16:30 +0000)
commitc8487deda0f5ee888267c53322c6197a463c1b88
treeb41505ced9dc37328f78da4e967039961e2a9a44
parent2437a5f37af01a33aa96ecf35082d6ce7d64f55c
android: add misssing error codes to stackResultToStr()

The OC_STACK_UNAUTHORIZED_REQ error code and some others were missing in
the method for translating them into strings.
Without this patch it resulted in this exception:
org.iotivity.base.OcException: stack error in onObserveCallback JNI_INVALID_VALUE

Change-Id: I739dfecafff55c035702a27a9b5d8dcb925993f4
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2643
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
android/android_api/base/jni/JniUtils.h
android/android_api/base/src/main/java/org/iotivity/base/ErrorCode.java