add method to produce a string with the exception details in a format we can use in one of our webapps