Description
It is unclear how to create a parse/unparse error using ParseOrUnparseState while creating a layer transform. Currently we can create a SDE using ParseOrUnparseState, but there are situations where the issue is with the data, not the schema.
A possible workaround is to manually recreate what PE and UE do as in:
parserOrUnparseState match { case pstate: PState => // do what PE(...) does case ustate: UState => // do what UE(...) does }
Related to DAFFODIL-2841