Is your feature request related to a problem?
In many cases, users of plugins encounter errors when starting them. Unfortunately, it is not clear to users what actions they need to take to solve the problem. In some cases, the problem is also that users generally do not understand the error.
Describe the solution you'd like.

Using Doc's function, you could throw a specific exception and extra fields at the OnEnable, which then contains more detailed information on why the plugin is disabled or what you have to do to get the plugin functional again.
Describe alternatives you've considered.
Alternatives would be that every developer does it differently and users have to obtain information with many circumstances.
Other
This would give developers a way to give users UX-friendly help and make it uniform
Is your feature request related to a problem?
In many cases, users of plugins encounter errors when starting them. Unfortunately, it is not clear to users what actions they need to take to solve the problem. In some cases, the problem is also that users generally do not understand the error.
Describe the solution you'd like.
Using Doc's function, you could throw a specific exception and extra fields at the OnEnable, which then contains more detailed information on why the plugin is disabled or what you have to do to get the plugin functional again.
Describe alternatives you've considered.
Alternatives would be that every developer does it differently and users have to obtain information with many circumstances.
Other
This would give developers a way to give users UX-friendly help and make it uniform