move connection exception to common namespace