Add type safe way, to check properties of Exceptions

I think this might be a good way, to have a type safe way to check for values of properties of Exceptions