Improved error message for AO/DD constraint exceptions