refactor, consolidate and extend driver exception conversion