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-mcgann (via GitHub)" <gi...@apache.org> on 2023/01/30 19:21:48 UTC

[GitHub] [daffodil] mike-mcgann commented on a diff in pull request #942: Catch and wrap exceptions thrown in layer transformers

mike-mcgann commented on code in PR #942:
URL: https://github.com/apache/daffodil/pull/942#discussion_r1091048383


##########
daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/parsers/LayeredSequenceParser.scala:
##########
@@ -54,6 +55,8 @@ class LayeredSequenceParser(
     } catch {
       case le: LayerNotEnoughDataException =>
         PENotEnoughBits(state, le.schemaFileLocation, le.dataLocation, le.nBytesRequired * 8, MaybeULong.Nope)
+      case e: Exception =>
+        throw LayerExecutionException(s"Unexpected exception in layer transformer ${layerTransformer.layerName}: $e", e)

Review Comment:
   Updated to place quotes around the layer name



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org