Improved error debugging features using re-throw of exception