Adds ability to specify a template for exceptions retrieved from Exception::getPrevious
aad test to console exception strategy
Merge branch 'hotfix/4609'

Close #4609
Fixes #3853
Fixes #4456
Fixes #4503
Fix CS issue

- trailing whitespace
Merge pull request #4542 from basz/master

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

Forward port #4542