public static long getNextAvailableId() { if (cachedSearchingAvailability == null) { throw new ProblemException("UnixUserAvailableIdHelper has not been initialised"); } Optional<Long> next = cachedSearchingAvailability.getNext(); if (!next.isPresent()) { throw new ProblemException("There is no more unix user id available"); } return next.get(); }
public static long getNextAvailableId() { if (cachedSearchingAvailability == null) { throw new ProblemException("UnixUserAvailableIdHelper has not been initialised"); } Optional<Long> next = cachedSearchingAvailability.getNext(); if (!next.isPresent()) { throw new ProblemException("There is no more unix user id available"); } return next.get(); }
return byteArray; } catch (Exception e) { throw new ProblemException("Could not create the keystore", e);
throw new ProblemException("The link id is not numerical", e);
linkedResourceId = Long.parseLong(value); } catch (Exception e) { throw new ProblemException("The link id is not numerical", e); throw new ProblemException("The linked resource does not exist");
linkedResourceId = Long.parseLong(value); } catch (Exception e) { throw new ProblemException("The link id is not numerical", e); throw new ProblemException("The linked resource does not exist");
throw new ProblemException("The link id is not numerical", e);
if (!resources.isEmpty()) { if (resources.size() > 1) { throw new ProblemException("Too many links of type [" + linkType + "]"); linkedResourceId = Long.parseLong(value); } catch (Exception e) { throw new ProblemException("The link id is not numerical", e); throw new ProblemException("The linked resource does not exist");
if (!resources.isEmpty()) { if (resources.size() > 1) { throw new ProblemException("Too many links of type [" + linkType + "]"); linkedResourceId = Long.parseLong(value); } catch (Exception e) { throw new ProblemException("The link id is not numerical", e); throw new ProblemException("The linked resource does not exist");
if (!resources.isEmpty()) { if (resources.size() > 1) { throw new ProblemException("Too many links of type [" + linkType + "]");
if (!resources.isEmpty()) { if (resources.size() > 1) { throw new ProblemException("Too many links of type [" + linkType + "]");
throw new ProblemException("The link id is not numerical", e);
throw new ProblemException("The link id is not numerical", e);
throw new ProblemException("Cannot run as more than 1 unix user"); throw new ProblemException("Cannot be installed on multiple machines");
throw new ProblemException("Cannot run as more than 1 unix user"); throw new ProblemException("Cannot be installed on multiple machines");
throw new ProblemException("Cannot run as more than 1 unix user"); throw new ProblemException("Cannot be installed on multiple machines");
throw new ProblemException("Cannot run as more than 1 unix user"); throw new ProblemException("Cannot be installed on multiple machines");