code: public static String getPrettyParseExceptionInfo(SAXParseException ex) {
  
          final StringBuilder sb = new StringBuilder();
  
          if (ex.getSystemId() != null) {
              sb.append("systemId=").append(ex.getSystemId()).append(", ");
          }
          if (ex.getPublicId() != null) {
              sb.append("publicId=").append(ex.getPublicId()).append(", ");
          }
          if (ex.getLineNumber() > 0) {
              sb.append("Line=").append(ex.getLineNumber());
          }
          if (ex.getColumnNumber() > 0) {
              sb.append(", Column=").append(ex.getColumnNumber());
          }
          sb.append(": ").append(ex.getMessage());
  
          return sb.toString();
      }
docs: Builds a prettier exception message.
  
  @param ex the SAXParseException
  @return an easier to read exception message