Fix nhc98 code variations to use the extensible exception API.