Using built-in validation pop-up for custom fields


I am currently adding custom fields (by custom code) to the single product page in WooCommerce using the OceanWP theme. I was about to start custom validation to the fields when I noticed that the fields already had some validation and the result looks quite nice.

When the Add to Cart button is pressed and a field is invalid I get the following message pop-up: enter image description here

I’m not sure whether the warning popup is part of WordPress, WooCommerce or OceanWP.

My question is: can I can use this built-in warning popup for my own validation messages?