Defining an exception object instead of a class

前端 未结 0 1188
梦毁少年i
梦毁少年i 2021-01-07 15:57

I want to define a throwable to return in case of function failure. I don\'t want a stack trace or exception parameters or inheritance. Can I just define a throwable object

相关标签:
回答
  • 消灭零回复
提交回复
热议问题