Michael Moser created NIFI-1643:
-----------------------------------

             Summary: 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


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.3.4#6332)

Reply via email to