/** * Validates a UUID value and throws a specific exception if UUID is invalid. * * @param uuid The UUID value to validate. * @param uuidValueOf The property associated to the given UUID value. * @throws RuntimeException */ public static void validateUUID(String uuid, String uuidValueOf) throws RuntimeException { if (!WSManUtils.isUUID(uuid)) { throw new RuntimeException("The returned " + uuidValueOf + " is not a valid UUID value! " + uuidValueOf + ": " + uuid); } }
/** * Validates a UUID value and throws a specific exception if UUID is invalid. * * @param uuid The UUID value to validate. * @param uuidValueOf The property associated to the given UUID value. * @throws RuntimeException */ public static void validateUUID(String uuid, String uuidValueOf) throws RuntimeException { if (!WSManUtils.isUUID(uuid)) { throw new RuntimeException("The returned " + uuidValueOf + " is not a valid UUID value! " + uuidValueOf + ": " + uuid); } }