How can i display custom validation error to admin user

In case someone is looking for the solution in V4: Throw Error message in lifecycle hook doesnt change the error message display in the UI - #8 by taka