@Override public List<IFix> fixJobs(final List<String> jobIds, final int changeListId, final String status, final boolean delete) throws ConnectionException, RequestException, AccessException { try { FixJobsOptions fixJobsOptions = new FixJobsOptions().setDelete(delete) .setStatus(status); return fixJobs(jobIds, changeListId, fixJobsOptions); // TODO Why are P4JavaException and RequestException handled // differently for each method? } catch (final ConnectionException | AccessException | RequestException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } }
@Override public List<IFix> fixJobs(final List<String> jobIds, final int changeListId, final String status, final boolean delete) throws ConnectionException, RequestException, AccessException { try { FixJobsOptions fixJobsOptions = new FixJobsOptions().setDelete(delete) .setStatus(status); return fixJobs(jobIds, changeListId, fixJobsOptions); // TODO Why are P4JavaException and RequestException handled // differently for each method? } catch (final ConnectionException | AccessException | RequestException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } }