Added aggregation exception helper.
Update the assert message logic.