Refactor exception handling

Logging exceptions is now cleaner and more understandable.

Change-Id: I679031d1e4c945088c8a7508aa0286bb2d6eb4f0
1 file changed