W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2010

Calabash: p:error

From: Florent Georges <fgeorges@fgeorges.org>
Date: Wed, 22 Dec 2010 18:13:59 +0100
Message-ID: <AANLkTimrqU4Bta2+sEGexu3rfLzZ0En3R3AU00s6fH6G@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>

  In the implementation of p:error, an XProcException is thrown.  If
there is an input doc on the port source, its trings value is used as
the exception message:

    throw new XProcException(errorCode, doc.getStringValue());

  Is there any reason why not to get the serialized representation of
this XML document, instead of its string value?  For instance like:

    throw new XProcException(errorCode, doc.toString());

  That results in more readable logs in case we define an error
vocabulary for an application.


Florent Georges
Received on Wednesday, 22 December 2010 19:47:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:07 UTC