What exception should I raise for “operation is currently invalid”?

前端 未结 0 1066
南笙
南笙 2021-02-07 01:19

Lets assume there is a method, and I want this method to be called only at certain conditions of a class variable, and otherwise I want to throw an exception:

 de         


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