The License Validation Rules suggest various error messages an add-on should create if it encounters a license validation error. Composing those messages would require the add-on to access some detail information from the host application license:
LICENSE_TYPE - on type mismatch error<br>LIMIT - on max user (or max remote agent for Bamboo) mismatch
I have not found any API entry point to access this information programmatically from within an add-on - am I missing something or is this information simply not exposed by the host applications?
NOTE: This is basically a host application agnostic variation of How to programmatically access Confluence license details? (so far unanswered). We develop add-ons for various Atlassian applications and would like to handle license validation as uniform as possible.