Add ability to pass exceptions as flash message