Have a question that I can answer through trial and error or digging through the WordPress Source Code but thought I would ask here first to save myself some time.
I have a plugin that ties into 3rd party APIs and as such there are some restrictions on usage. I want to create a function tied to register_activation_hook that will do necessary validation and if it fails error out gracefully so that the plugin does not activate.
What is the "correct" way of doing this? Should my function generate a PHP Exception, return a WP_Errors object or?