code: @CheckForNull
      public static String getWin32ErrorMessage(Throwable e) {
          String msg = e.getMessage();
          if(msg!=null) {
              Matcher m = errorCodeParser.matcher(msg);
              if(m.matches()) {
                  try {
                      ResourceBundle rb = ResourceBundle.getBundle("/hudson/win32errors");
                      return rb.getString("error"+m.group(1));
                  } catch (Exception ignored) {
                      // silently recover from resource related failures
                  }
              }
          }
  
          if(e.getCause()!=null)
              return getWin32ErrorMessage(e.getCause());
          return null; // no message
      }
docs: Extracts the Win32 error message from {@link Throwable} if possible.
  
  @return
  null if there seems to be no error code or if the platform is not Win32.