pipeline:errorMessage

Purpose

Returns the human readable message provided by the operation that caused an error.

Signature

pipeline:errorMessage()

Example

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs"
  xmlns:pipeline="http://www.volantis.com/xmlns/marlin-pipeline"
  xmlns:gdocs="http://www.volantis.com/xmlns/2008/08/gdocs">
  <head>
    <title>Pipeline error functions</title>
  </head>
  <body>
    <div>
      <pipeline:try>
        <pipeline:preferred>
          <pipeline:transform href="fetch2xdime.xsl">
            <gdocs:fetch xml:id="first fetch"
              href="https://docs.google.com/feeds/download/documents/Export?docID=dcg224t7_2d92rmb64&amp;exportFormat=html">
              <gdocs:authenticate user-id="antennatests@gmail.com" password="1antenna1"/>
            </gdocs:fetch>
          </pipeline:transform>
        </pipeline:preferred>
        <pipeline:alternative>
          <pipeline:content>
            <p>There was a problem retrieving the information requested.</p>
            <p>Message: <pipeline:value-of expr="pipeline:errorMessage()"/></p>
            <p>Source Id: <pipeline:value-of expr="pipeline:errorSourceID()"/></p>
            <p>Code Name: <pipeline:value-of expr="pipeline:errorCodeName()"/></p>
            <p>Code URI: <pipeline:value-of expr="pipeline:errorCodeURI()"/></p>
            <p>Code info (Captcha Token): <pipeline:value-of expr="pipeline:errorInfo('captcha-key')"/></p>
            <p>Code info (Captcha URL): <pipeline:value-of expr="pipeline:errorInfo('captcha-url')"/></p>
            <p>Code info (Login): <pipeline:value-of expr="pipeline:errorInfo('login')"/></p>
          </pipeline:content>
        </pipeline:alternative>
      </pipeline:try>
    </div>
  </body>
</html>

Related topics