code: public static ConfigException createConfig(Throwable e)
    {
      if (e instanceof ConfigException)
        return (ConfigException) e;
      else
        return new ConfigException(e);
    }
docs: /*
  public static ConfigException createLine(String loc, String msg)
  {
  if ("".equals(loc)) {
  return new ConfigException(msg);
  }
  
  String fileName = getFileName(loc);
  int line = getLine(loc);
  
  String source = ConfigUtilTemp.getSourceLines(fileName, line);
  
  return new ConfigExceptionLine(loc + msg + source);
  }
  
  private static String getFileName(String loc)
  {
  loc = loc.trim();
  
  if (loc.endsWith(":")) {
  loc = loc.substring(0, loc.length() - 1);
  }
  
  int p = loc.lastIndexOf(':');
  
  if (p <= 0) {
  return null;
  }
  else {
  return loc.substring(0, p);
  }
  }
  
  private static int getLine(String loc)
  {
  loc = loc.trim();
  
  if (loc.endsWith(":")) {
  loc = loc.substring(0, loc.length() - 1);
  }
  
  int p = loc.lastIndexOf(':');
  
  if (p <= 0) {
  return 0;
  }
  else {
  return Integer.parseInt(loc.substring(p + 1));
  }
  }
  
  public static RuntimeException create(Field field, Throwable e)
  {
  return create(loc(field), e);
  }
  
  public static RuntimeException create(Method method, Throwable e)
  {
  return create(loc(method), e);
  }
  
  public static RuntimeException create(Method method, String msg, Throwable e)
  {
  return new ConfigException(loc(method) + msg, e);
  }
  
  public static RuntimeException create(Method method, String msg)
  {
  return new ConfigException(loc(method) + msg);
  }