I have a trigger on Case that adds an error onto the trigger.new records for certain conditions. This works exactly as expected.
When introducing a visualforce page that queries for existing cases linked to another custom object and automatically closes them down I get an issue. Basically, I have a try / catch around my DML that processes the trigger errors if any occur and adds more detail (specifically the case number), however the page shows my custom error AND the original trigger error. How do I stop the trigger error from showing so that I only get my custom errors?