Adds ability to specify a template for exceptions retrieved from Exception::getPrevious