Throw exception if cant match some fragments