The type attribute specifies the type of exception to be intercepted by this handler.
type属性指定了这个异常处理程序会截获的异常类型。
If any type of exception is thrown in a unit test, the DOH declares the entire test as failed.
如果在一个单元测试中有任何类型的异常被抛出,DOH就会宣布整个测试失败。
Whenever you get any type of exception in DB2, the next step is to find out where that error is coming from.
在DB 2中,无论何时收到任何类型的异常,接下来的一步就是找出那个错误的来源。
This means that you will pass the test only if that particular type of exception is raised in the designated line.
这意味着只有在指定行中抛出特定类型的异常的时候,您才会通过测试。
When determining what type of exception to throw, you should always first consider the tier that will handle the reported exception.
当决定抛出何种类型的异常时,您应该总是首先考虑将要处理所报告异常的层。
Each handler specifies some form of filter condition on the type of exception it handles.
每个处理程序对它处理的异常类型指定某种形式的筛选条件。
An error message typically contains the type of exception raised and the method that caused the exception.
错误讯息一般包含引发的例外状况类别和造成例外状况的方法。
The answer is to provide a more useful type of exception that also contains a lower-level exception. Listing 1 shows a simple ApplicationException that does just this
答案是提供一类更有用的异常,它还包含低级异常。
You can use an underscore (Scala's standard wild card character) as a placeholder to catch any type of exception (really, to match any case in a pattern matching expression).
你可以使用一个下划线(Scala的标准通配符)作为占位符来捕捉任意类型的异常(不骗你,它可以匹配模式匹配表达式的任何case)。
You can use an underscore (Scala's standard wild card character) as a placeholder to catch any type of exception (really, to match any case in a pattern matching expression).
你可以使用一个下划线(Scala的标准通配符)作为占位符来捕捉任意类型的异常(不骗你,它可以匹配模式匹配表达式的任何case)。
应用推荐