Java equivalent to .Net's NotSupportedException

后端 未结 2 622
夕颜
夕颜 2021-02-06 20:10

Is there (not NotImplementedException, not supported).

2条回答
  •  滥情空心
    2021-02-06 20:54

    You can use either UnsupportedOperationException or NoSuchMethodException or extend the Exception class and create your own custom exception called NotImplementedException or whatever

提交回复
热议问题