Skip to content
Snippets Groups Projects
Commit f8d00b99 authored by Julian Tusch's avatar Julian Tusch :no_entry_sign:
Browse files

add profile error codes and messages

parent e26aff4d
No related branches found
No related tags found
2 merge requests!493Resolve "profile ids should be idempotent",!449Fluxio preliminary release
......@@ -60,6 +60,12 @@ namespace armarx::skills::error
return formatString("This is a test Error with Argument: '%s'", args);
case ErrorCode::ProviderAlreadyExists:
return formatString("Provider with ID '%s' already exists.", args);
case ErrorCode::ProfileHasNoParent:
return formatString("Profile with name: '%s' could not be added because it has no "
"Parent Profile assigned.",
args);
case ErrorCode::ProfileAlreadyExists:
return formatString("Profile with name: '%s' already exists.", args);
default:
return "Unknown error.";
}
......
......@@ -18,7 +18,9 @@ namespace armarx::skills::error
AddSkillError,
ProviderAlreadyExists,
ConverterError,
TestError
TestError,
ProfileHasNoParent,
ProfileAlreadyExists
};
std::string formatString(const std::string& format, const std::vector<std::string>& args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment