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>
  Hi,

  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.

  Regards,

-- 
Florent Georges
http://fgeorges.org/
Received on Wednesday, 22 December 2010 19:47:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 22 December 2010 19:47:51 GMT