Support for error class name maps, closes #575