*
*/
public void setError(Exception excp, SQLDocument doc, SQLWarning warn)
{
ExpressionContext cont = doc.getExpressionContext();
m_LastSQLDocumentWithError = doc;
try
{
ErrorListener listen = cont.getErrorListener();
if ( listen != null && excp != null )
listen.warning(
new TransformerException(excp.toString(),
cont.getXPathContext().getSAXLocator(), excp));
if ( listen != null && warn != null )
{
listen.warning(new TransformerException(
warn.toString(), cont.getXPathContext().getSAXLocator(), warn));
}
// Assume there will be just one error, but perhaps multiple warnings.
if ( excp != null ) m_Error = excp;