IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to get ino return value in delete exception?

  • 1.  How to get ino return value in delete exception?

    Posted Thu November 06, 2003 05:05 PM

    Hallo,

    when I try to delete a nonexisting XML object in Tamino, I get a TDeleteException. That’s what I expect. But how can I make a distinction to find out if the exception raised because of ‘no documents found’ or because of another (real) error?

    TException.getMessageCode() only returns ‘?’.

    Regards,
    Pascal Sch


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: How to get ino return value in delete exception?

    Posted Fri November 07, 2003 11:13 AM

    Hi Pascal,

    what you have to do is the following:
    If TException.hasAccessFailureException() is true, get the TAccessFailureException with TException.getAccessFailureException().
    Get the return value from TAccessFailureException.getReturnValue(), which returns the number as a String.

    We noticed that TAccessFailureException is not documented in JavaDoc. This is an error and we will fix this for the next release.

    Best regards,
    Christian.


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs