Name

cx:report-errors — Send error report to the user.

Synopsis

<p:declare-step type="cx:report-errors" xmlns:cx="http://xmlcalabash.com/ns/extensions">
     <p:input port="source" primary="true"/>
     <p:input port="report" sequence="true"/>
     <p:output port="result" sequence="true"/>
     <p:option name="code"/>                                       <!-- QName -->
     <p:option name="code-prefix"/>                                <!-- NCName -->
     <p:option name="code-namespace"/>                             <!-- anyURI -->
</p:declare-step>

Description

If the report port is not empty, it is sent to the error listener (as one or more warnings). The source is always copied to the result.

If an error code is specified, the step also raises that error.