[EDITORIAL] Reorder exceptions more consistently in program.build()