stevedlawrence commented on a change in pull request #436:
URL: https://github.com/apache/incubator-daffodil/pull/436#discussion_r509382898
##########
File path: daffodil-japi/src/main/scala/org/apache/daffodil/japi/Daffodil.scala
##########
@@ -835,6 +845,18 @@ class InvalidParserException private[japi] (cause:
org.apache.daffodil.compiler.
*/
class InvalidUsageException private[japi] (cause:
org.apache.daffodil.processors.InvalidUsageException) extends
Exception(cause.getMessage(), cause.getCause())
+/**
+ * This exception will be thrown when when the unparseResult.isError during a
SAX Unparse
+ */
+class DaffodilUnparseErrorSAXException(exception:
SDaffodilUnparseErrorSAXException)
+ extends org.xml.sax.SAXException(exception.getMessage)
+
+/**
+ * This exception will be thrown when an unexpected error occurs during the
SAX unparse
Review comment:
Might be worth documentation that if this happens there is no
UnparseResult and getUnparseResult from teh content handler may return null, or
something to that effect.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]