Recursively walk subclass tree to build code->exception class mapping.