code: public void error(SourceLocator srcLctr, String msg, Object args[], Exception e) throws TransformerException
    {
  
      //msg  = (null == msg) ? XSLTErrorResources.ER_PROCESSOR_ERROR : msg;
      String formattedMsg = XSLMessages.createMessage(msg, args);
  
      // Locator locator = m_stylesheetLocatorStack.isEmpty()
      //                   ? null :
      //                    ((Locator)m_stylesheetLocatorStack.peek());
      // Locator locator = null;
      ErrorListener errHandler = m_transformer.getErrorListener();
  
      if (null != errHandler)
        errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));
      else
        throw new TransformerException(formattedMsg, srcLctr);
    }
docs: Tell the user of an error, and probably throw an
  exception.
  
  @param msg Message text to issue
  @param args Arguments to use in message
  @param e Exception to throw
  @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide
  the error condition is severe enough to halt processing.
  
  @throws TransformerException
  @xsl.usage internal