[ https://issues.apache.org/jira/browse/NIFI-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard resolved NIFI-1643. ---------------------------------- Resolution: Fixed Fix Version/s: 1.0.0 > FlowFileHandlingException should extend RuntimeException > -------------------------------------------------------- > > Key: NIFI-1643 > URL: https://issues.apache.org/jira/browse/NIFI-1643 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 0.5.1 > Reporter: Michael Moser > Priority: Minor > Fix For: 1.0.0 > > > Looking at nifi-api in org.apache.nifi.processor.exceptions, I see that > FlowFileAccessException and MissingFlowFileException extend RuntimeException. > But FlowFileHandlingException extends ProcessException. > Should FlowFileHandlingException extend RuntimeException like the others? > I ask because the latest best practice for try-catch handling of exceptions > thrown from ProcessSession inside onTrigger() is to catch ProcessException. > This allows the exceptions mentioned above to escape an onTrigger() to be > handled in the framework (which usually rolls back the session). -- This message was sent by Atlassian JIRA (v6.4.14#64029)