How to throw a validation error from my plugin field

would love to get some light on this