Extending Throwable in Java

前端 未结 7 1354
长发绾君心
长发绾君心 2020-12-16 10:47

Java lets you create an entirely new subtype of Throwable, e.g:

public class FlyingPig extends Throwable { ... }

Now, very

相关标签:
7条回答
  • 2020-12-16 11:17

    The org.junit.Test annotation includes the None class which extends Throwable and is used as the default value for the expected annotation parameter.

    0 讨论(0)
提交回复
热议问题