when do I write my own exception class?

后端 未结 4 1248
感情败类
感情败类 2021-02-02 12:00

I have been wondering since I stepped into the murky waters of OOP and have written a couple or so of distributed libraries when it is necessary to write my own extension of the

4条回答
  •  半阙折子戏
    2021-02-02 12:41

    IMHO: Simply if you enter your own domain. That is usually indicated when you need additional data to provide in your exception. So actually you then also have to do you own class to add the additional class members.

提交回复
热议问题