Hi @rfm1964 ,
As @GuidoPreite mentioned you need to use the alternative key, but you will not be able to control the error message since it will be the OOB error message.
Another solution is to create email to validate if another contact exists on the system with the same email then throw your exception as needed.
If this post helps you with your problem, please mark this answer as Accepted Solution.
If you like my response, please give it a Thumbs Up.