Is there a way to setup blueprint errors in C++

Is it possible to create a C++ parent class that will warn or create an error in child blueprints when specific requirements are not met? (e.g. if you don’t have a specific socket on a skeletal mesh selected in the blueprint, when you try to compile the blueprint, there will be an error telling you that you are missing said socket).