Wrap exception in the controller.