• Throwing an exception not only unwinds the test but also signals an error.

    抛出异常不仅展开测试将报告错误

    youdao

  • If the caller won't be able to handle the exception in a meaningful way, consider throwing an unchecked (run-time) exception.

    如果调用不能意义的方式处理这个异常那么考虑抛出一个未检查的(运行时)异常。

    youdao

  • This means that if you do your validation while processing the parameters, you can - by throwing an exception - prevent your class from being finalized.

    意味着如果处理参数执行验证可以通过抛出异常预防终结

    youdao

  • Of course, just throwing out an exception isn't a very robust way to deal with problems.

    当然仅仅抛出异常并不一定是解决问题最佳方式

    youdao

  • This is thrown when the run method is allocated a thread, but either the setup of context failed or the method exited by throwing a runtime exception.

    这个异常在将run方法分配给一个线程抛出这个异常或者上下文设置失败或者通过抛出运行时异常退出方法。

    youdao

  • Instead of throwing an unchecked exception with a call to the add method, you just get false returned by offer .

    它不是调用add方法抛出一个unchecked异常而只是得到offer返回false

    youdao

  • Throwing an exception would not help in our case because we would then have to add instanceof checks in hasConsecutiveZeros to ensure that we didn't trigger the exception.

    抛出一个异常例中帮不了什么忙,因为我们不得不hasConsecutiveZeros中添加instanceof 检查语句确保我们没有触发异常。

    youdao

  • " Writing good exceptions" (developerWorks, May 2003) offers some practical advice on throwing and catching exceptions and refining your exception-handling sensibilities.

    编写出色异常 ”(developerWorks, 2003 年5 月)提供了一些关于抛出捕获异常以及改善异常处理灵敏度的一些实际建议

    youdao

  • Instead of throwing an exception when the queue is empty, the reader thread now blocks itself on the condition variable.

    队列时候,线程现在并不抛出异常而是条件变量阻塞自身

    youdao

  • The first mistake that nonnative speakers make is to return a value indicating an error, instead of throwing an exception.

    原生语言使用者的一类错误返回一个表示错误而不是抛出异常。

    youdao

  • If timeouts are not expected, then throwing an exception might be a better choice.

    如果预料不会超时引发异常可能一种更好的选择。

    youdao

  • The original JAXB code unconditionally verified the structure of documents, throwing an exception and aborting the processing if an error was found.

    原来JAXB代码无条件地验证文档结构如果发现错误,则抛出异常中止处理

    youdao

  • Another way that listeners can make trouble for unwary event sources is throwing an unchecked exception.

    对于不小心事件侦听器造成麻烦的一个方式抛出未检测的异常。

    youdao

  • Your handler code can make use of the information passed by the call-backs, but cannot affect the parsing (except by throwing an exception).

    处理程序代码可以使用这些回调中传递信息但是不能影响解析过程除了引发一个异常)。

    youdao

  • Select "title" in the table, and in the property grid change "NullValue" to "(empty)" - that is, treat the title as the empty string whenever no data exists for it, instead of throwing an exception.

    Datatable中选中title”,在属性栏里将“NullValue更改为“(Empty)”-这样为了在没有与“title”对应的数据title做为一个字符串来对待,以此替换抛出异常。

    youdao

  • While remove behaves like the collection interface version, instead of throwing an exception when called with an empty collection, the new poll method just returns null.

    remove行为Collection接口版本相似,但是新的poll方法集合调用不是抛出异常只是返回null。

    youdao

  • JSR 310 fixes this by throwing an exception for null arguments.

    JSR 310通过抛出null参数异常修复了这个问题。

    youdao

  • For instance, adding elements to a Queue could be done with the add method of Collection, throwing an unchecked exception on failure.

    例如Queue添加元素可以Collectionadd方法来实现,它失败时会抛出未检测异常

    youdao

  • The schema validator can now take responsibility for throwing an exception for the bug mentioned earlier.

    现在模式验证器可以负责前面那个bug抛出异常

    youdao

  • Add records adds records without throwing an exception.

    AddRecords添加记录没有抛出异常

    youdao

  • If any of the arguments are Infinity the transformation matrix must be marked as infinite instead of the method throwing an exception.

    如果任意一个参数无限大变形矩阵必须标记无限大,否则会抛出异常。

    youdao

  • An exception is raised by throwing an object.

    异常通过抛出对象而引发的。

    youdao

  • Throwing an exception will cause the error event to be invoked, and the connection will be closed.

    抛出一个异常导致错误事件调用并且连接关闭

    youdao

  • If any of the above steps fails with an exception that the service constructor may throw (according to its exception specification), the service constructor also fails by throwing that exception.

    如果以上任何步骤服务构造函数可能抛出(根据异常规范)异常而失败,则服务构造函数抛出异常并以失败告终。

    youdao

  • All threads that are not daemon threads have died, either by returning from the call to the run method or by throwing an exception that propagates beyond the run method.

    守护线程所有线程停止运行,无论是通过run方法调用中返回还是通过抛出一个传播到run方法之外异常

    youdao

  • The following example fixes the previous violation by checking the error code and throwing an exception when the call fails.

    下面示例通过调用失败时检查错误代码引发异常修复前面的冲突

    youdao

  • You can use the second parameter to control throwing an exception on unmappable characters.

    可以使用第二参数控制遇到无法映射字符时是否引发异常

    youdao

  • This combination of parameter Settings turns best-fit mapping off, but enables the exception-throwing mechanism as a safety precaution.

    这种参数设置组合可以关闭最佳映射启用异常引发机制作为安全预防措施。

    youdao

  • Note that many other input operations return a special value on end of stream rather than throwing an exception.

    注意很多其它输入操作末尾返回一个特定不是抛出异常。

    youdao

  • This method avoids throwing an exception if the entry is not currently in the dictionary.

    如果字典当前没有该项,则方法可避免引发异常

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定