Many exceptions in pyrogenesis are created as PSERROR classes using inheritance. Their definitions are held in Errors.cpp. The file is updated using a perl script:
// Auto-generated by errorlist.pl - do not edit.
Running that file again reveals that there are few obsolete entries. These changes should be committed, as this is a precondition to considering to introducing more.