Transforms DaffErrors into DaffStateErrors before they are serialized into state. Can be used to further refine Daffodil errors into more specific app errors.
DaffError
DaffStateError