improve driver exception code conversion