Support for error class name maps, closes #500