Customizable exception key instead of hardcoded 'details'

Currently 'details' is hardcoded and unless rewriting a exception handler it can't be changed. This patch fixes it so it can be achievable by only subclassing the exceptions, which is something most people will do.

I haven't found any exception related tests (I might have missed them). Should I create a new test file to test this changes?