This will probably be done by setting up the extensible pretty printer for exceptions and then exporting it.