System.exit(num) or throw a RuntimeException from main?

前端 未结 7 1808
日久生厌
日久生厌 2020-12-18 19:57

I\'ve got a single threaded app that should set the DOS errorlevel to something non-zero if there is a problem. Is it better to throw a RuntimeException, or to use System.ex

7条回答
提交回复
热议问题