Adds ability to specify a template for exceptions retrieved from Exception::getPrevious
aad test to console exception strategy
Merge pull request #4542 from basz/master

Adds ability to specify a template for exceptions retrieved from Exception::getPrevious
Merge branch 'hotfix/4542'

Close #4542