New library: tagged_map. Update exception to use it.