Github user selvaganesang commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/885#discussion_r94592894
--- Diff: core/sqf/src/seatrans/tm/hbasetmlib2/javaobjectinterfacetm.cpp ---
@@ -478,3 +499,17 @@ void
JavaObjectInterfaceTM::appendExceptionMessages(JNIEnv *jenv, jthrowable a_e
jenv->DeleteLocalRef(a_exception);
}
+short JavaObjectInterfaceTM::getExceptionErrorCode(JNIEnv *jenv,
jthrowable a_exception)
+{
+ jshort errCode = JOI_OK;
+ if(a_exception != NULL)
+ {
+ //Only TransactionManagerException class has errorcode defined.
+ if(jenv->IsInstanceOf(a_exception, gTransactionManagerExceptionClass))
+ {
+ errCode =(jshort) jenv->CallShortMethod(a_exception,
+ gGetErrorCodeMethodID);
+ }
--- End diff --
Add exception handling code here or at least clear the exception and set
the error code to zero
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---