changes in exception module

making it suitable for unit test module to catch exceptions