Throw an exception when an invalid WriteConcern was set