Treatment of exception in the Controller