code: private Exception buildAndLogException(Exception e) throws Exception {
          PartitionRecord pr = new PartitionRecord(false);
          pr.setExecutor(_pe.name);
          List<PartitionRecord> records = _pe.taskStore.find(pr);
          PartitionRecord record = records.get(0);
  
          String id = "PersistentExecutorMBean-".concat(String.valueOf(exceptionCounter.getAndIncrement()));
  
          String logDir = record.getUserDir().concat("servers/").concat(record.getLibertyServer()).concat("/logs/");
          Exception ex = new Exception(MBeanMessageHelper.getUnableToPerformOperationMessage(record.getLibertyServer(), record.getHostName(),
                                                                                             logDir.replace('/', File.separatorChar), id));
  
          Object[] serverStrings = { id, Utils.stackTraceToString(e) };
          Tr.error(tc, "CWWKC1559.mbean.operation.failure", serverStrings);
  
          return ex;
      }
docs: Builds a new client appropriate exception to replace the caught exception. This tells the
  client to look in the logs for further information.
  <br>
  Logs the information from the original exception.
  
  @param e internal exception which is caught
  @return new client-appropriate exception
  @throws Exception