Implemented the generic exceptions used in some of the classes