If exc is specified in retry, the specified exception shuold be thrown.