code: private NaaccrIOException convertSyntaxException(ConversionException ex) {
          String msg = ex.get("message");
  
          // reading a file that has bad tags is very common, so let's try to get a better error message in that case:
          if (CannotResolveClassException.class.getName().equals(ex.get("cause-exception")))
              msg = "invalid tag: " + ex.get("cause-message");
          else if (StreamException.class.getName().equals(ex.get("cause-exception")))
              msg = "invalid XML syntax";
  
          if (msg == null)
              msg = ex.getMessage();
  
          NaaccrIOException e = new NaaccrIOException(msg, ex);
          if (ex.get("line number") != null)
              e.setLineNumber(Integer.valueOf(ex.get("line number")));
          e.setPath(ex.get("path"));
          return e;
      }
docs: We don't want to expose the conversion exceptions, so let's translate them into our own exception...