Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To catch a DRUnwindException in the collector agent, you can use the function block provided below. Alternatively, you can catch this exception, by adding the try-catch function block to the APL code included in the workflow. For further information on try-catch, see /wiki/spaces/DRXXE/pages/6195149 in /wiki/spaces/DRXXE/pages/6208950Function Blocks.

Code Block
languagetext
themeEclipse
catch(final DRUnwindException e){
  if(e.getAction() == DRUnwindException.CONTINUE) {
     logger.log(Level.WARNING, "An error message", e);
  } else {
     throw e;
  }
}

...