
I was trying to a validation error to the User, I have used InvalidPluginExecutionException to throw an exception with an error message
InvalidPluginExecutionException, should prevent Save action and should show the error detail
Instead the error is being logged in Tracer and it is not preventing the Save action
if (!CheckForDateClash(allEvents, newEvent))
{
throw new InvalidPluginExecutionException("Events clash, try choosing a new time or another event");
}
Hello Ravitejawoonna
Please refer this information.hope it's help
docs.microsoft.com/.../use-invalidpluginexecutionexception-plugin-workflow-activities