public void error(SourceLocator srcLctr,String msg,Object args[],Exception e) throws TransformerException {
  String formattedMsg=XSLMessages.createMessage(msg,args);
  ErrorListener errHandler=m_transformer.getErrorListener();
  if (null != errHandler)   errHandler.fatalError(new TransformerException(formattedMsg,srcLctr));
 else   throw new TransformerException(formattedMsg,srcLctr);
}

public void error ( SourceLocator srcLctr , String msg , Object args [ ] , Exception e ) throws TransformerException { String formattedMsg = XSLMessages . createMessage ( msg , args ) ; ErrorListener errHandler = m_transformer . getErrorListener ( ) ; if ( null != errHandler ) errHandler . fatalError ( new TransformerException ( formattedMsg , srcLctr ) ) ; else throw new TransformerException ( formattedMsg , srcLctr ) ; }
tell the user of an error , and probably throw an exception .
