[ 
https://issues.apache.org/jira/browse/TRAFODION-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15798405#comment-15798405
 ] 

ASF GitHub Bot commented on TRAFODION-2414:
-------------------------------------------

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


> 8616 error to display transaction conflict details.  
> -----------------------------------------------------
>
>                 Key: TRAFODION-2414
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2414
>             Project: Apache Trafodion
>          Issue Type: Improvement
>          Components: dtm, sql-exe
>    Affects Versions: any
>            Reporter: Prashanth Vasudev
>            Assignee: Prashanth Vasudev
>             Fix For: 2.1-incubating
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to