[
https://issues.apache.org/jira/browse/DAFFODIL-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-2841.
-----------------------------------
Verified the specified commit (commit fab8bf5d20b26a56912ab2a736a2bf5275f5a36a)
is included in the latest pull from the daffodil repository.
Verified, via review, changes identified in the commit comment were
implemented.
Verified the affected daffodil subproject sbt test suites executed
successfully, including additional tests.
Verified the nightly test suite executes successfully with no unexpected
failures.
> 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)