网络 运行时异常;抛出运行时异常;运行期异常
Listing 6 shows the logic for identifying RuntimeException capture.
清单6显示了用于标识RuntimeException捕获的逻辑。
So, in your situation: your application exception classes are subclasses of RuntimeException.
因此,对于您的情况:您的应用程序异常类是RuntimeException的子类。
In Listing 3, I´ve ensured that a RuntimeException will be thrown if push with null is called.
在清单3中,我确保了如果对null调用push,则抛出一个RuntimeException。
Although a RuntimeException, this is a parent class which can be caught by clients of the library calls.
虽然CalendricalExcpetion是一个RuntimeException,但客户端的库调用都可以捕获这个父类。
If the value turns out to be null, I then throw a RuntimeException to alert everyone of the potential problem.
如果其值最终为null,我就会抛出一个RuntimeException来警告他人注意这个潜在问题。