Add support for previous exceptions in LineFormatter