8 formatString(
const std::string& format,
const std::vector<std::string>& args)
10 std::string formatted = format;
14 while ((pos = formatted.find(
"%s", pos)) != std::string::npos && argIndex < args.size())
16 formatted.replace(pos, 2, args[argIndex]);
17 pos += args[argIndex].length();
30 return formatString(
"Execution with ID '%s' not found.", args);
32 return formatString(
"Executor with ID '%s' not found.", args);
35 "Error while getting execution runner for fluxio skill with id '%s'", args);
37 return formatString(
"Skill with ID '%s' could not be converted.", args);
39 return formatString(
"Executor with ID '%s' is not a FluxioCompositeExecutor.",
42 return formatString(
"Skill with ID '%s' not found.", args);
44 return formatString(
"Parameter with ID '%s' not found.", args);
46 return formatString(
"Profile with ID '%s' not found.", args);
48 return formatString(
"Provider with ID '%s' not found.", args);
51 "Skill description for Skill with ID '%s' not found. Abort executing.", args);
53 return formatString(
"Mutex for Skill with ID '%s' could not be aquired", args);
55 return formatString(
"Mutex for Skill with ID '%s' could not be removed because the "
56 "user does not hold the mutex.",
60 "Skill with ID: '%s' could not be added to provider with ID: '%s'.", args);
62 return formatString(
"This is a test Error with Argument: '%s'", args);
64 return formatString(
"Provider with ID '%s' already exists.", args);
66 return formatString(
"Profile with name: '%s' could not be added because it has no "
67 "Parent Profile assigned.",
70 return formatString(
"Profile with name: '%s' already exists.", args);
74 return "Unknown error.";