- Added class to handle exceptions