• The code should ideally be wrapped by try-catch blocks.

    最好把代码放在try - catch块中。

    youdao

  • If the content isn't supported, the code throws an exception, which is caught by the try-catch block.

    如果内容不受支持,那么代码抛出一个异常,此异常由try - catch块捕捉到。

    youdao

  • Because the category property can either be multivalued or single-valued, you check for it with a try-catch statement.

    因为分类属性可以是多值的也可以是单值的,所以要用try - catch语句检查它。

    youdao

  • However, you'll still need to use the old try-catch style if you want to test the exception's detail message or other properties.

    但是如果您想要测试异常的详细消息或其他属性,则仍然需要使用旧式的try - catch样式。

    youdao

  • These contain information about all the try-catch blocks in the method, so you'll have to correlate the throw and catch information to identify the bug pattern.

    它们包含关于方法中所有try - catch块的信息,所以您必须将抛出信息和捕获信息关联,以标识bug模式。

    youdao

  • To detect this bug pattern, you'll need to know where the try-catch blocks are, what might be thrown out of the try block, and what is caught in the catch blocks.

    要检测此bug模式,则需要知道try - catch块的位置、try块可能抛出的内容以及在catch块中将捕获的内容。

    youdao

  • While on the subject, it's worth noting that although the examples in this series use try-catch() blocks to trap and handle exceptions, this isn't strictly necessary.

    关于这个问题,有一点值得注意:尽管本系列中的示例使用 try-catch() 代码块来捕捉和处理异常,但这并不是必须的。

    youdao

  • From the SOAP client perspective, it's a good idea to wrap the SOAP call inside a try-catch block, so that SOAP faults like the one above can be caught and handled gracefully.

    对于SOAP客户端来说,将这个SOAP调用封装在一个try - catch代码块中是很好的做法,这样类似于上面的SOAP错误就会被顺利地捕捉和处理。

    youdao

  • When invoking unknown code (which listeners certainly qualify as), it is prudent to execute it in a try-catch block so that ill-behaved listeners do not do more damage than necessary.

    在调用未知代码(侦听器就是这样的代码)时,谨慎的方式是在try - catch块中执行它,这样,行为有误的侦听器不会造成更多不必要的破坏。

    youdao

  • Each CodeException contains the starting and ending bytecode offset for the corresponding try block, so you can easily determine which CodeException objects correspond to a try-catch block.

    每个CodeException都包含相应try块的起始和终止的字节码偏移量,这样您可以方便地确定哪一个CodeException对象与try - catch块对应。

    youdao

  • Apparently, if they catch sight of their reflection gawping back at them, they try to fight it.

    一个明显的发现就是,如果它们借助鱼缸的反射看到了自己的身影,它们会试图和另一个虚拟的自己打架。

    youdao

  • "If there are nine rabbits, focus on catching one, don't try to catch them all," he said.

    他说:“如果有九只兔子,集中精力抓一只,不要试图把它们全部抓住。”

    youdao

  • In some cases they may come out and try to catch the animal, but most shelters do not have the manpower to do this.

    在有些情况下,他们可能会过来并尝试抓住这只动物,但是,绝大多数的收容所并没有足够的人力来做这件事。

    youdao

  • You should see a lovely Tomcat welcome screen — if not, wait a few minutes and try again, because it might take a while for the network to catch up with you.

    您应该会看到一个可爱的Tomcat欢迎屏幕 —如果没有的话,等待几分钟然后重试,因为网络可能需要几分钟的时间才能作出响应。

    youdao

  • He stood still stupidly while the boys ran round him, mimicking and laughing; they shouted to him to try and catch them; but he did not move.

    他呆呆地站在那儿不动,孩子们围着他跑,一边模仿一边大笑;他们向他喊叫,想让他尝试抓住他们;但他没有动。

    youdao

  • The Surround with menu lets you easily wrap lines of code you've written with try... catch, for, and while loops.

    Surround With菜单使您能够轻松地将使用try…catch、for和while循环编写的代码行打包。

    youdao

  • To use the doQuery method, you need to establish a database connection and call the method from within a try ... catch block, as shown in Listing 4.

    要使用doQuery方法,需要建立数据库连接并且从try ...catch块内调用方法,如清单4 所示。

    youdao

  • But there is a catch: Try running the code below, and it works for some of the cells.

    但有一个问题:尝试运行下面的代码,它对某些单元格有效。

    youdao

  • Wrap steps 1 through 6 in a try/except block in order to catch any unexpected UDDIErrors (specifically, for a returned DispositionReport from the API).

    为了捕获任何意料之外的UDDIError (特别是,API返回的DispositionReport ),把步骤1到6封装在一个try/except块中。

    youdao

  • With the asyncEcho test, it wraps the asserts in a try/catch, and any errors are passed back to the DOH through the deferred.errback(error) call.

    对于asyncEcho测试,它将断言包装进一个try/catch 程序块,并且,任何错误都将通过 deferred.errback(error) 调用被传递回DOH。

    youdao

  • A try... catch structure changes the runtime exception behavior to what is specified in the catch clause.

    catch结构将运行时异常行为更改为catch子句中所指定的行为。

    youdao

  • This is why I used the try-except block: I can catch my own SQL errors and respond to them if needed.

    这就是我使用try - except块的原因:我可以捕捉自己的SQL错误,并根据需要进行响应。

    youdao

  • On this day, Morrie says that he has an exercise for us to try. We are to stand, facing away from our classmates, and fall backward, relying on another student to catch us.

    一天,莫里老师说要让我们进行一次测验:我们背对着同学,站着,然后向后倒,依赖别的同学来接住我们。

    youdao

  • Don't fret over lost time; don't try to catch up with yesterday's unfinished tasks.

    不要为逝去的时间而懊悔;不要以为可以弥补昨天未完成的任务。

    youdao

  • Finally, the page USES a try block to catch any unforeseen errors with the error description displayed on the page.

    最后,页面使用try块捕获任何不可预见的错误,并在页面上显示错误描述。

    youdao

  • Try to do it each time you catch yourself being hard on yourself so that you do not spend the whole day, week, etc. with this negative thought going through your head.

    试着在每一次你对自己严苛的时候做这样的功课,以便你不用在一整天或整个星期等等带着这些负面的想法过活。

    youdao

  • The command bean is instantiated and a try catch block is used to catch exceptions generated from a duplicate user, an invalid credit card, or an unauthorized credit card.

    命令bean被实例化,try catch块被用于捕捉由于重复的用户、无效的信用卡或未经认证的信用卡而产生的异常。

    youdao

  • Each fisherman will try to catch as many fish as possible in order to maximize his profits.

    为了最大化自身收益,每个渔夫都会尝试捕捞尽可能多的鱼。

    youdao

  • Each fisherman will try to catch as many fish as possible in order to maximize his profits.

    为了最大化自身收益,每个渔夫都会尝试捕捞尽可能多的鱼。

    youdao

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

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

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