Converter errors to exceptions.