The example below shows how to throw validation exceptions with the custom exception. You can then retrieve the error messages from the calling method. It is not good ...