Support sharded DuplicateKey exceptions

JAVA-1103
I think we want to extract the error code from err before we look in errObjects.