This exception, if not handled, often causes a run time failure.
如果不处理这个异常,常常会导致运行时故障。
If the server-side code fails, the failure method is called with the thrown exception as its argument.
如果服务器端代码失败,则将调用失败的方法,并用抛出的异常作为参数。
If an exception is thrown, then the exception indicates the cause of the failure.
如果抛出了异常,那么这个异常会指出失败的原因。
In the case of failure, an exception is raised and handled.
如果失败,会抛出一个异常并予以处理。
The method returns a string of content from the HTTP response and throws a custom exception in the case of a failure.
这个方法返回HTTP响应中的内容字符串,在失败时抛出定制的异常。
Identify cause of the failure by going through database manuals and searching for the error codes sent back in the exception.
查阅数据库手册,搜索异常中返回的错误码,从而判断失败的原因。
For example, an administrative staff could handle an exception in a task (for example, invalid order, system failure).
例如,管理员可能处理任务中的异常(例如,无效的命令、系统崩溃)。
Add records with Failure adds several records, but the method throws an exception before finishing, so the CMT is rolled back automatically.
AddRecordswithFailure添加几条记录,但是在完成前方法抛出了异常,所以CMT自动回滚。
An error code is provided to indicate which of these failure paths occurred, and the cause of the problem is provided as a linked exception.
doWork方法会提供一个错误代码,表示这些故障发生的路径,还把问题原因作为链接的异常提供。
Adding XPath expressions to the exception message, as shown in Listing 7, results in a more detailed description of the validation failure, which greatly simplifies locating the problem.
如清单7所示,添加XPath表达式到异常消息将产生更详细的对验证失败的描述,这样大大方便了发现问题。
For instance, adding elements to a Queue could be done with the add method of Collection, throwing an unchecked exception on failure.
例如,向Queue添加元素可以用Collection的add方法来实现,它在失败时会抛出未检测异常。
The Add Records with Failure menu item in the transaction demo application demonstrates what happens to a transaction when an exception occurs sometime during the operation.
TransactionDemo应用程序中的AddRecordswithFailure菜单项演示了当操作过程中发生异常时事务将如何处理。
However, success or failure in the above example run are defined very weakly: success just means no exception was raised, not that the (redirected) output was correct.
不过,上面运行的例子中对成功或失败的界定很不明显:成功只是意味着没有出现异常,而不表示(重定向的)输出正确。
An exception set in the command result indicates a failure to execute the command.
在命令结果中设置的异常指示执行命令失败。
Statement failure rate shows the rate of statement executions resulting in an exception.
语句错误率显示执行后会产生异常的语句的比例。
This exception is handled by the unit test engine to indicate an assert failure.
测试引擎处理此异常以指示测试失败。
Failure is the rule, success the exception.
失败是正常的,成功是例外的。
If a member cannot successfully do what it is designed to do, that should be considered an execution failure and an exception should be thrown.
如果某一成员无法按预期方式成功执行,则应将这种情况视为一个执行故障并引发一个异常。
By default, the runtime throws an exception to managed code by mapping the failure HRESULT to an equivalent managed exception.
默认情况下,运行时会将失败的HRESULT映射到一个等效的托管异常,从而向托管代码引发异常。
Use typed exceptions to indicate the mode of failure, and except that type of exception in the test.
用定义好的异常去表达模式的失败,当然要排除测试中的异常类型。
The exception is used as a standard application-level exception to report a failure to find the requested EJB object(s).
该异常作为一个标准应用级的异常使用,来报告查找请求的EJB对象失败。
This exception is used as a standard application-level exception to report a failure to create an EJB object.
该异常作为一个标准应用级异常使用,来报告创建e JB对象失败。
The invention can ensure successful physical memory allocation in the drive of the embedded system, and can avoid system exception caused by the failure of applying for continuous physical memory.
本发明能够确保嵌入式系统驱动中连续物理内存分配成功,并且避免由于申请连续物理内存失败而出现系统异常的情况。
But, I put you behind, say, you getting the business is a failure, I mean, if you look at the example at Bill Gates as you know the rule instead of the exception here.
但是,我把你的背后,也就是说,你得到的业务是失败的,我的意思是,如果你在看那个例子,在比尔·盖茨正如你所知道的规则,而非例外。
Throws an exception with a specific failure HRESULT value.
掷回具有特定错误HRESULT值的例外状况。
Throw an exception to indicate failure in a constructor;
假设构造函数内错误发生,通过抛出异常来指明。
Throw an exception to indicate failure in a constructor;
假设构造函数内错误发生,通过抛出异常来指明。
应用推荐