You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2024/04/29 01:58:00 UTC
[jira] [Updated] (DAFFODIL-2841) Layers do not support (or poorly documented) creating SDE or Parse/UnparseErrors
[ https://issues.apache.org/jira/browse/DAFFODIL-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Beckerle updated DAFFODIL-2841:
------------------------------------
Fix Version/s: 3.8.0
(was: 4.0.0)
> Layers do not support (or poorly documented) creating SDE or Parse/UnparseErrors
> ---------------------------------------------------------------------------------
>
> Key: DAFFODIL-2841
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2841
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Reporter: Steve Lawrence
> Assignee: Mike Beckerle
> Priority: Major
> Fix For: 3.8.0
>
>
> From what I can tell, there is no way for a layer signal that an error occurred, or at least non of our current layers seem to check and handle any errors, so if it can be done it needs better examples.
> If a we do something like layerRuntimeInfo.runtimeData.SDE(...), then that SDE exception is caught by the layer infrastructure and turned into a LayerExecutionException, which seems like it's used to indicate bugs in a layer. Throwing an SDE should not be considered a bug.
> It looks like some functions do provide ParseOrUnparseState, so maybe we could create a Parse/UnparseError, but it's not exactly clear or documented if/how this should be used, or even if the layer infrastructure checks the state. This needs some clarification.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)