OK, got it. Thank you!

On Tue, Jul 28, 2020 at 3:56 PM Beckerle, Mike <mbecke...@tresys.com> wrote:

> When you call parse, you get a ParseResult back, and the InfosetOutputter
> has been called and populated with the created infoset.
>
> The isError call and any accumulated diagnostics are on the ParseResult
> object, I guess because those are not specific to whatever flavor of
> infoset outputter you choose to use, and frankly because InfosetOutputters
> came as a later addition to the API.
>
>
>
> ------------------------------
> *From:* Patrick Grandjean <p.r.grandj...@gmail.com>
> *Sent:* Tuesday, July 28, 2020 3:36 PM
> *To:* users@daffodil.apache.org <users@daffodil.apache.org>
> *Subject:* ScalaXMLInfosetOutputter.isError?
>
> Hi,
>
> I'm using
>
> org.apache.daffodil.sapi.infoset.ScalaXMLInfosetOutputter
>
> and get an exception when calling ScalaXMLInfosetOutputter.getResult(). It
> says I should check if there is an error with isError. However there is no
> ScalaXMLInfosetOutputter.isError function and
> ScalaXMLInfosetOutputter.infosetOutputter.resultNode is private.
>
> How to check for errors and get the underlying exception?
>
> Patrick.
>

Reply via email to