One Exception handler for all exceptions of a CLASS

前端 未结 6 1648
甜味超标
甜味超标 2021-02-04 01:05

I have a class with number of methods and want to have one exception handler for them all. There are so many of these methods and they have different parameters, that it would b

6条回答
  •  庸人自扰
    2021-02-04 01:30

    you might want to put a try/catch about you main method, although i consider this to be a serious misuse of exception handling, except you want to append a logger or sth.

提交回复
热议问题