Refactored out ignorable exception type-matching to minimise duplicating
of that logic