Utility method to print information about a SAXParseException.

@param message A message to be included in the error output.
@param e The exception to be printed.
431245
void printSaxParseException(String message,
                                SAXParseException e) {
        System.err.println();
        System.err.println("*** SAX Parse Exception -- " + message);
        System.err.println("      SystemId = \"" + e.getSystemId() + "\"");
        System.err.println("      PublicId = \"" + e.getPublicId() + "\"");
        System.err.println("      line number " + e.getLineNumber());
        e.printStackTrace(System.err);
    }
549275
public void logExceptionAndSetInconsistency(String message, Throwable e) throws IOException
   {
      setInconsistency();
      // The ThreadLocal has been initialized so we know that we are in multithreaded mode.
      if (reportContext.get() != null)
      {
         reportContext.get().addLogException(message, e);
      }
      else
      {
         writeException(message, e);
      }
   }
82591
public void logException(Throwable e, String message) {
        logMessage(IStatus.ERROR, message, e);
    }
395853
public void exception(Throwable e) {
    final String msg = e.getMessage();
    log(Level.SEVERE, msg != null ? msg : "An exception occurred.", e);
  }
887692
public void info(final String message, final Exception exception) {
        messages.add(new LogMessage(message + " " + exception.getMessage(), LogMessage.Type.INFO));
        log.info(message, exception);
    }
1226267
public static void dump(String message, Throwable exception) {
		printEmphasized(StringPrinter.buildString(printer -> {
			printer.println(message);
			exception.printStackTrace(printer.toPrintWriter());
		}));
	}
499363
public void debugFiner(CharSequence message, Throwable e) {
    log(Level.FINER, message, e);
  }
965502
public void warning(CharSequence message, Throwable e) {
    log(Level.WARNING, message, e);
  }
509106
protected static void logParsingIssue(final String prefix, final SAXParseException e) {
		final StringBuilder buffer = new StringBuilder();
		buffer.append(prefix);
		buffer.append(" while reading UAS data: ");
		buffer.append(e.getMessage());
		buffer.append(" (line: ");
		buffer.append(e.getLineNumber());
		if (e.getSystemId() != null) {
			buffer.append(" uri: ");
			buffer.append(e.getSystemId());
		}
		buffer.append(")");
		LOG.warn(buffer.toString());
	}
1137400
private void printMessage(final Throwable t) {
        final String message = t.getMessage();
        if (message != null && !message.trim().isEmpty()) {
            printErrorMessage("Error: " + message);
        }
    }
1370656
public void ellipsis(String message) {
    if (length >= maxLength) {
      try {
        out.write(message);
        out.flush();
      } catch (IOException e) {
        throw Throwables.propagate(e);
      }
    }
  }
369001
public void info(CharSequence message, Throwable e) {
    log(Level.INFO, message, e);
  }
454493
public static void printVerboseMessage(final String message, final Logger logger) {
        try {
            if (JPService.getProperty(JPVerbose.class).getValue()) {
                logger.info(message);
            } else {
                logger.debug(message);
            }
        } catch (final JPServiceException ex) {
            logger.info(message);
            ExceptionPrinter.printHistory("Could not access verbose java property!", ex, logger);
        }
    }
552857
public static void printHelp(String message) {
    System.err.println(message);
    HelpFormatter help = new HelpFormatter();
    help.printHelp(USAGE, OPTIONS);
  }
595427
@SuppressWarnings({"ThrowableInstanceNeverThrown"})
    public void warning(String msg, Exception ex) throws SAXException{
        xml.warning(new SAXParseException(msg, null, ex));
    }
595905
public void error(SAXParseException e) throws SAXException
  {
    // %REVIEW% I don't think this should be called.  -sb
    // clearCoRoutine(e);

    // This is not great, but we really would rather have the error 
    // handler be the error listener if it is a error handler.  Coroutine's fatalError 
    // can't really be configured, so I think this is the best thing right now 
    // for error reporting.  Possibly another JAXP 1.1 hole.  -sb
    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();
    if(errorListener instanceof ErrorHandler)
    {
      ((ErrorHandler)errorListener).error(e);
      if(null != m_errorHandler)
        m_errorHandler.error(e); // may not be called.
    }
    else
    {
      try
      {
        errorListener.error(new javax.xml.transform.TransformerException(e));
        if(null != m_errorHandler)
          m_errorHandler.error(e); // may not be called.
      }
      catch(javax.xml.transform.TransformerException te)
      {
        throw e;
      }
    }
  }
609851
public void setText(Exception e) {
		StringWriter wr = new StringWriter();
		PrintWriter pr = new PrintWriter(wr);
		e.printStackTrace(pr);
		this.setText(wr.toString());
	}