Implemented exceptions

I needed those for timetable.py