Add a way to simulate an exception from the UI