Code example for TransformerException

Methods: getMessageAndLocation

0
  } 
 
  // ErrorListener 
 
  public void warning(TransformerException e) {
    log.warn(e.getMessageAndLocation());
  } 
 
  public void error(TransformerException e) throws TransformerException {
    throw e;
  } 
 
  public void fatalError(TransformerException e) throws TransformerException {
    throw e;
  } 
 
  // XMLReporter 
 
  public void report(String message, String errorType, Object relatedInformation, Location loc) {
    final StringBuilder sb = new StringBuilder("XML parser reported ").append(errorType);
    if (loc !=  null) {