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来警告他人注意这个潜在问题。
Unlike RMI, these services don't have checked exceptions (though clearly, if a communication error occurs, a RuntimeException will be thrown).
不像RMI那样,这些服务无需checked exception(很明显,如果发生了通信错误则会抛出RuntimeException)。
You should take care to return a value of the right type and to only throw exceptions declared by the method; otherwise, the Proxy implementation will raise a RuntimeException.
应该小心地返回适当类型的值,并且只抛出由方法声明的异常;否则,Proxy实现将抛出一个RuntimeException。
It iterates the list of catch blocks, and if it finds one that catches Exception, it looks again for a catch block that catches RuntimeException for the same range of bytecodes.
它将迭代捕获块的列表,如果发现捕获Exception的块,它会再次查找捕获块,该捕获块将捕获字节码同一范围的RuntimeException。
In this installment, you'll develop a detector for a less trivial bug pattern, called RuntimeException capture. (this bug detector is now included in the FindBugs distribution.)
在这一期的文章中,您将开发一个称为RuntimeExceptioncapture的更小bug模式的检测器(目前,FindBugs发行版中已包含此bug检测器。)
Bug patterns often stem from confusing features of the language or the class library; this bug pattern stems from the somewhat counterintuitive fact that RuntimeException extends Exception.
bug模式通常源自语言的模糊功能或类库;出现此bug模式是因为RuntimeException扩展了Exception,这稍微有点违反常理。
Unchecked exceptions which are descendents of RuntimeException class are the ideal candidate exceptions handle non-recoverable errors such as resource non-availability or some null Pointers.
未检查异常作为运行时exception类是理想的异常侯选处理不可恢复性出错,如资源不可用或者空指针。
Void respond (RuntimeException, RequestCycle) is called whenever an uncaught exception occurs during the event handling or response phase so that an appropriate exception response can be generated.
只要在事件处理过程或响应阶段发生未被捕获的异常,voidrespond (RuntimeException,RequestCycle)都会被调用以便生成合适的异常响应。
Void respond (RuntimeException, RequestCycle) is called whenever an uncaught exception occurs during the event handling or response phase so that an appropriate exception response can be generated.
只要在事件处理过程或响应阶段发生未被捕获的异常,voidrespond (RuntimeException,RequestCycle)都会被调用以便生成合适的异常响应。
应用推荐