add event display

I want to add a variable when the NamedException is thrown.