Submitting a post comment without message leads to a white page with a clean WP error message "ERROR: please type a comment."
Is it possible to achieve the same thing for input fields from a custom form? For instance, I've got my own custom contact page template containing a number of input fields, some of them I want to make required. How to get the same WP error message when those haven't been filled?