How to get ino return value in delete exception?


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 ‘?’.

Pascal Sch

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,