单词 | catch block | ||||
释义 | catch block
例句释义: 捕获块,安全钳 1. Returns the name of the stored procedure or trigger where an error occurred that caused the CATCH block of a TRYCATCH construct to be run. 返回在其中出现了导致TRYCATCH构造的CATCH块运行的错误的存储过程或触发器的名称。 msdn2.microsoft.com 2. The message is returned as a server error message to the calling application or to an associated CATCH block of a TRY. . . CATCH construct. 该消息作为服务器错误消息返回到调用应用程序,或返回到TRY…CATCH构造的关联CATCH块。 msdn2.microsoft.com 3. Because even deadlock errors can be trapped in the CATCH block , the batch is no longer aborted and T-SQL code can continue to work . 因为死锁错误能够为CATCH语句块所捕获,所以批处理将不再中止,T-SQL代码也能继续执行。 www.bing.com 4. Returns the state number of the error that caused the CATCH block of a TRY. . . CATCH construct to be run. 返回导致TRY…CATCH构造的CATCH块运行的错误状态号。 msdn2.microsoft.com 5. An attempt was made to pass a data type that does not derive from System. Exception into a catch block. 试图将不是从System.Exception派生的数据类型传递到catch块中。 msdn2.microsoft.com 6. In the CATCH block of a TRY. . . CATCH construct, the stored procedure is called and information about the error is returned. 在TRY…CATCH构造的CATCH块中,调用了该存储过程并返回有关错误的信息。 msdn2.microsoft.com 7. When called in a CATCH block, returns the error number of the error message that caused the CATCH block to be run. 在CATCH块中调用时,返回导致运行CATCH块的错误消息的错误号。 msdn2.microsoft.com 8. This procedure should be executed from within the scope of a CATCH block; otherwise, it will return without inserting error information. 此过程应该在CATCH块的范围中执行,否则它不会插入任何错误信息。 msdn2.microsoft.com 9. Returns the error number of the error that caused the CATCH block of a TRYCATCH construct to be run. 返回错误的错误号,该错误会导致运行TRYCATCH结构的CATCH块。 msdn2.microsoft.com 10. A TRY block must be immediately followed by an associated CATCH block. TRY块后必须紧跟相关联的CATCH块。 msdn2.microsoft.com 1. If the error occurs within the scope of a TRY block, execution continues and the CATCH block is not invoked. 如果错误发生在TRY块的作用域内,则执行将继续而不调用CATCH块。 technet.microsoft.com 2. In case of an exception, the catch block simply called the exception publisher, then returned the executing thread back to the thread pool. 如果发生了异常,这个catch块只是简单地调用异常发布程序,然后将正在执行的线程返回到线程池中。 www.ibm.com 3. catch block, and that you call the close method on your connection inside a finally block. catch块中,而且在finally块中在连接上调用close方法。 www.ibm.com 4. Records all errors in the AdventureWorks database that are caught by the CATCH block of a TRY. CATCH construct. 记录由TRY.CATCH结构的CATCH块捕获的AdventureWorks数据库中的所有错误。 technet.microsoft.com 5. The code in a CATCH block should test for the state of a transaction by using the XACT_STATE function. CATCH块中的代码可以通过使用XACT_STATE函数来测试事务的状态。 msdn2.microsoft.com 6. A Catch block by itself will catch all exceptions derived from Exception, and therefore should always be the last block before Finally. Catch块本身会捕捉所有从Exception派生的异常,因此它应始终是Finally之前的最后一个块。 msdn2.microsoft.com 7. Error information can be retrieved by using these functions from anywhere within the scope of the CATCH block. 可以从CATCH块作用域内的任何位置使用这些函数检索错误消息。 msdn2.microsoft.com 8. To handle an error that occurs within a given CATCH block, write a TRY. . . . CATCH block within the specified CATCH block. 若要处理给定的CATCH块中出现的错误,请在指定的CATCH块中编写TRY.CATCH块。 msdn2.microsoft.com 9. GOTO can also be used to exit a TRY block or a CATCH block; however, GOTO cannot be used to enter a TRY block or a CATCH block. GOTO还可用于退出TRY块或CATCH块;但是,无法使用GOTO进入TRY块或CATCH块。 msdn2.microsoft.com 10. Each try must have at least one corresponding catch block. 每一个try至少要有一个与之对应的catch。 in.php.net 1. If a Try statement does not contain at least one Catch block, it must contain a Finally block. 如果Try语句不包含至少一个Catch块,它必须包含Finally块。 msdn2.microsoft.com 2. RAISERROR can be used in either the TRY or CATCH block of a TRY. . . CATCH construct to affect error-handling behavior. RAISERROR可用在TRY.CATCH构造的TRY或CATCH块中影响错误处理行为。 msdn2.microsoft.com 3. A TRY. . . CATCH construct consists of two parts: a TRY block and a CATCH block. TRY…CATCH构造包括两部分:一个TRY块和一个CATCH块。 msdn2.microsoft.com 4. ERROR_STATE may be called anywhere within the scope of a CATCH block. ERROR_STATE可以在CATCH块范围内的任意位置调用。 msdn2.microsoft.com 5. I suggest creating a method that logs exception information and calling that method in the catch block of your exception blocks. 我建议创建一个方法记录异常的信息,并且当出现异常时调用这个方法并遮蔽掉您所抛出的异常。 www.diybl.com 6. The 1205 deadlock victim error can be caught by the CATCH block and the transaction can be rolled back until the threads become unlocked. CATCH块可以捕获1205死锁牺牲品错误,并且事务可以回滚,直至线程解锁。 msdn2.microsoft.com 7. The purpose of a try-catch block is to catch and handle an exception generated by working code. try-catch块的用途是捕捉和处理工作代码所生成的异常。 msdn2.microsoft.com 8. When the control reaches the catch block, a SOAP request is prepared using a cached body, and a Web service is invoked. 当执行到catch块时,将使用缓存的主体准备SOAP请求,并随后调用Web服务。 www.ibm.com 9. Prints error information about the error that caused execution to jump to the CATCH block of a TRY. CATCH construct. 显示有关导致跳到TRY.CATCH结构CATCH块的错误的错误信息。 msdn2.microsoft.com 10. Notice how the mail object defined in the catch block takes a closure that defines the from, to, and message attributes. 注意catch块中定义的mail对象如何接受定义了from、to和message属性的闭包。 www.ibm.com 1. This table is populated when the stored procedure uspLogError is executed in the scope of the CATCH block of a TRY. . . CATCH construct. 存储过程uspLogError在TRY.CATCH构造的CATCH块的作用域中执行时,将填充此表。 msdn2.microsoft.com 2. In nested CATCH blocks, ERROR_STATE returns the error state specific to the scope of the CATCH block in which it is referenced. 在嵌套CATCH块中,ERROR_STATE返回引用它的CATCH块范围特有的错误状态。 msdn2.microsoft.com 3. If so, the current driver does not add the catch block for any custom exception thrown by the Web service. 如果有,则表明当前驱动器没有为Web服务抛出的自定义异常添加批处理块。 www.ibm.com 4. This technique handles the specific exception before it is passed to a more general catch block. 此方法在将特定异常传递给更常规的Catch块之前处理该异常。 msdn2.microsoft.com 5. When called in a CATCH block, returns the stored procedure name where the error occurred. 在CATCH块中调用时,返回出现错误的存储过程名称。 msdn2.microsoft.com 6. Within the nested CATCH block, ERROR_STATE returns the state from the error that invoked the nested CATCH block. 在嵌套CATCH块中,ERROR_STATE返回调用该嵌套CATCH块的错误状态。 msdn2.microsoft.com 7. If the stored procedure contains a TRY. . . CATCH construct, the error transfers control to the CATCH block in the stored procedure. 如果存储过程包含TRY…CATCH构造,则错误会将控制传输给存储过程中的CATCH块。 www.kuenglish.info 8. The catch block associated with that filter runs after the finally statement. 与该筛选器关联的catch块在finally语句之后运行。 msdn2.microsoft.com 9. Within the nested CATCH block, these functions return information about the error that invoked the inner CATCH block. 在嵌套的CATCH块内,这些函数将返回有关调用内部CATCH块的错误的信息。 msdn2.microsoft.com 10. These functions return information about the error that caused the CATCH block to be invoked. 这些函数返回有关导致CATCH块被调用的错误的信息。 msdn2.microsoft.com 1. Errors trapped by a CATCH block are not returned to the calling application. 由CATCH块捕获的错误不会返回到调用应用程序。 msdn2.microsoft.com 2. By doing this, you do not have to repeat the error handling code in every CATCH block. 如果这样做,则不必在每个CATCH块中重复错误处理代码。 msdn2.microsoft.com 3. This procedure modifies the code to include error handling by wrapping the update call in a try-catch block. 此过程将通过在try-catch块中包装更新调用来修改代码以包含错误处理。 msdn2.microsoft.com 4. First, multiple exception types can be named as being handled by a single catch block. 首先,一个catch块中可以处理多个指定类型的异常。 www.infoq.com 5. Is executed within the scope of a CATCH block. 在CATCH块的作用域内执行。 msdn2.microsoft.com 6. A TRY block must be followed immediately by a CATCH block. CATCH块必须紧跟TRY块。 msdn2.microsoft.com 7. The code also implements error handling by wrapping the update call in a try-catch block. 该代码还将通过在try-catch块中包装更新调用来实现错误处理。 msdn2.microsoft.com 8. However, an object with automatic storage created in a try or catch block will be destroyed. 但是将销毁具有自动存储的、在try块或catch块中创建的对象。 msdn2.microsoft.com 9. If no catch block specifies a matching exception filter, then a catch block with no filter (if any) will be executed. 如果没有任何catch块指定匹配的异常筛选器,那么将执行没有筛选器的catch块(如果有的话)。 msdn2.microsoft.com 10. The error will be handled by the CATCH block, which uses a stored procedure to return error information. 此错误将由CATCH块处理,它将使用存储过程返回错误信息。 msdn2.microsoft.com 1. If the CATCH block contains a nested TRYCATCH construct , any error in the nested TRY block will pass control to the nested CATCH block . 如果CATCH块包含嵌套的TRYCATCH构造,则嵌套的TRY块中的任何错误都会将控制传递给嵌套的CATCH块。 www.bing.com 2. If ERROR_SEVERITY is run in the outer CATCH block, it returns the severity from the error that invoked that CATCH block. 如果ERROR_SEVERITY运行在CATCH块以外,则它会返回调用该CATCH块的错误的严重级别。 technet.microsoft.com 3. If an appropriate catch block is found, the program counter is reset to the first line of code in that block. 如果找到了适当的catch块,程序计数器会重置到那一块代码的第一行。 www-128.ibm.com 4. Cannot be caught by a try-catch block. 无法通过try-catch块捕获引发的。 msdn2.microsoft.com 5. Return error information from the CATCH block to the calling batch or application. 将错误信息从CATCH块返回到进行调用的批处理或应用程序。 msdn2.microsoft.com 6. The same functions in the outer CATCH block would return information about the error that invoked that CATCH block. 在外部CATCH块,这些函数将返回有关调用CATCH块的错误的信息。 msdn2.microsoft.com 7. In this way, RAISERROR can be used to return information to the caller about the error that caused the CATCH block to execute. 这样,RAISERROR可用于返回有关导致CATCH块执行的错误的调用方信息。 msdn2.microsoft.com 8. Control flow can never reach a Catch block that follows a Catch without an exception argument. 如果不使用exception参数,则控制流永远不能到达Catch后的Catch块。 msdn2.microsoft.com 9. The error functions will return NULL if called outside the scope of a CATCH block. 如果在CATCH块的作用域之外调用错误函数,错误函数将返回NULL。 msdn2.microsoft.com 10. The deadlock victim error will cause execution to jump to the CATCH block and the transaction will enter an uncommittable state. 死锁牺牲品错误将使执行跳至CATCH块,事务将进入无法提交状态。 msdn2.microsoft.com 1. A catch block can catch exceptions thrown by a JScript program. catch块可以捕获JScript程序引发的异常。 msdn2.microsoft.com 2. In this catch block, the saved request body is used to prepare a SOAP request to invoke the Web service again. 在此catch块中,将使用所保存的请求主体来准备SOAP请求,以便再次调用Web服务。 www.ibm.com 3. Gets or sets the type of the exception to handle with the catch block. 获取或设置处理catch块的异常的类型。 msdn2.microsoft.com 4. In this case, you'll need to surround your code with a try catch block. 在这种情况下,需要用一个trycatch程序块来包围代码。 www.ibm.com 5. Gets the statements within the catch block. 获取catch块中的语句。 msdn2.microsoft.com 6. Cause execution to jump from a TRY block to the associated CATCH block. 导致执行从TRY块跳到关联的CATCH块。 msdn2.microsoft.com 7. A Catch block in the code cannot be reached because it is handled in a preceding Try block. 无法到达代码中的Catch块,因为它已经在前面的Try块中得到处理。 msdn2.microsoft.com 8. Now when the control reaches the throw RemoteException, a remote exception will be thrown and the flow will enter into the catch block. 现在,当执行到throwRemoteException处时,将引发远程异常,流将进入catch块。 www.ibm.com 9. The error causes execution to jump to the associated CATCH block. 该错误会使执行跳转到关联的CATCH块。 technet.microsoft.com 10. Use a try-catch block around any statements that might generate errors. 在任何可能生成错误的语句周围使用一个try-catch块。 msdn2.microsoft.com 1. The code in the catch block rolls back the transaction if an exception is thrown. 如果引发异常,catch块中的代码将回滚此事务。 msdn2.microsoft.com 2. A CATCH block starts with the BEGIN CATCH statement and ends with the END CATCH statement. CATCH块以BEGINCATCH语句开头,以ENDCATCH语句结尾。 msdn2.microsoft.com 3. ERROR_STATE returns the error state regardless of how many times it is run, or where it is run within the scope of the CATCH block. ERROR_STATE无论运行多少次,无论在CATCH块范围内的哪个位置运行,它都返回错误状态。 msdn2.microsoft.com 4. The following example shows how a TRY. . . CATCH block works inside a transaction. 以下示例显示TRY…CATCH块在事务内的工作方式。 technet.microsoft.com 5. The first catch block that species the exact type or a base class of the thrown exception will be executed. 与所引发异常的准确类型或其基类最为匹配的第一个catch块将被执行。 msdn2.microsoft.com 6. If an error occurs in the TRY block, control is passed to another group of statements that is enclosed in a CATCH block. 如果TRY块内部发生错误,则会将控制传递给CATCH块中包含的另一个语句组。 msdn2.microsoft.com 7. This error causes execution to transfer to the CATCH block. 此错误将使执行传递到CATCH块。 msdn2.microsoft.com 8. Clean up any existing objects, so that code that runs after the catch block does not fail. 清理现有的所有对象,以便在catch块后运行的代码不会失败。 msdn2.microsoft.com 9. The code inside the CATCH block executes the uspPrintError stored procedure. CATCH块中的代码执行uspPrintError存储过程。 msdn2.microsoft.com 10. Returns NULL if called outside the scope of a CATCH block. 如果在CATCH块作用域以外调用,则返回NULL。 msdn2.microsoft.com 1. PMD flagged this as an empty catch block. PMD把这标记为空catch块。 www.ibm.com 2. If there is an error in the code that is enclosed in a TRY block, control passes to the first statement in the associated CATCH block. 如果TRY块所包含的代码中有错误,则会将控制传递给相关联的CATCH块的第一个语句。 msdn2.microsoft.com 3. If a ClassLoadException error occurs, the code within the specified Catch block is executed. 如果发生ClassLoadException错误,则执行指定的Catch块内的代码。 msdn2.microsoft.com 4. Specify a severity of 10 or lower to use RAISERROR to return a message from a TRY block without invoking the CATCH block. 指定严重级别为10或更低以使用RAISERROR返回TRY块中的消息,而不必调用CATCH块。 msdn2.microsoft.com 5. To change the flow of execution, GOTO can be used within a TRY block or a CATCH block. 若要更改执行流,可以在TRY块或CATCH块内使用GOTO。 msdn2.microsoft.com 6. Exit Try can be used only inside a Try or Catch block, and not inside a Finally block. 只能在Try或Catch块内使用ExitTry,不能在Finally块内使用它。 msdn2.microsoft.com 7. Either a TRY block or a CATCH block can contain nested TRY. . . CATCH constructs. TRY块或CATCH块均可包含嵌套的TRY…CATCH构造。 msdn2.microsoft.com 8. Catch block can specify an exception type to catch. 块可以指定要捕捉的异常类型。 msdn2.microsoft.com 9. RAISERROR that has a severity 20 or higher closes the database connection without invoking the CATCH block. 严重性为20或更高的RAISERROR在不调用CATCH块的情况下终止数据库连接。 msdn2.microsoft.com 10. These functions return NULL if they are called outside the scope of the CATCH block. 如果是在CATCH块的作用域之外调用这些函数,则这些函数返回空值。 msdn2.microsoft.com 1. This Try. Catch block is designed to catch and rethrow all exceptions. 此Try.Catch块旨在捕捉并重新引发所有异常。 msdn2.microsoft.com 2. When Derby shuts down a database, it throws an SQLException with an SQLState of 08006, which is why the catch block ignores this exception. Derby关闭数据库时,将抛出SQLException,使用08006作为SQLState,这就是catch块忽略此异常的原因。 www.ibm.com 3. Specify a severity of 10 or lower to return messages using RAISERROR without invoking a CATCH block. 如果指定10或更低的严重度,将使用RAISERROR返回消息,而不调用CATCH块。 msdn2.microsoft.com 4. If a catch block merely re-throws the exception, the block is unnecessary. 如果一个catch块仅重抛出异常,这个块是不需要的。 blog.csdn.net 5. The following code example shows how to use RAISERROR inside a TRY block to cause execution to jump to the associated CATCH block. 以下代码示例显示如何在TRY块中使用RAISERROR使执行跳至关联的CATCH块中。 msdn2.microsoft.com 6. RAISERROR that has a severity of 11 to 19 executed inside a TRY block causes control to transfer to the associated CATCH block. 在TRY块内执行的严重性为11至19的RAISERROR会使控制传递到关联的CATCH块。 msdn2.microsoft.com 7. This is why the catch block contains calls to EIS1 transactions that cancel updates to the order and billing systems. 这就是catch块中包含对EIS1事务的调用的原因,为了取消对订单和记帐系统的更新。 www.ibm.com 8. RAISERROR that has a severity of 11 to 19 executed inside a CATCH block returns an error to the calling application or batch. 在CATCH块内执行的严重性为11至19的RAISERROR将错误返回到调用应用程序或批处理。 msdn2.microsoft.com 9. This problem occurs even if you have set a catch block to handle the exception. 即使您设置catch块来处理异常会发生此问题。 support.microsoft.com 10. It also shows how to use RAISERROR to return information about the error that invoked the CATCH block. 它还显示如何使用RAISERROR返回有关调用CATCH块的错误的信息。 msdn2.microsoft.com 1. For example, a CATCH block can contain an embedded TRY. . . CATCH construct to handle errors encountered by the CATCH code. 例如,CATCH块可以包含内嵌的TRY…CATCH构造,以处理CATCH代码所遇到的错误。 msdn2.microsoft.com 2. Because the value of value is out of range, an exception is thrown that is caught in the catch block. 因为value的值超出了范围,所以抛出了一个被catch块捕获的异常。 www.ibm.com 3. For example, the CATCH block of an outer TRY. CATCH construct could have a nested TRY. CATCH construct. 例如,外部TRY.CATCH构造的CATCH块可能具有嵌套TRY.CATCH构造。 msdn2.microsoft.com 4. For example, the CATCH block of a TRYCATCH construct could contain a nested TRYCATCH construct. 例如,TRYCATCH构造的CATCH块可以包含一个嵌套TRYCATCH构造。 msdn2.microsoft.com 5. For example, you cannot place a TRY block in one batch and the associated CATCH block in another batch. 例如,不能将TRY块放置在一个批处理中而将关联的CATCH块放置在另一个批处理中。 msdn2.microsoft.com 6. This can occur, for example, if you have edited code inside a catch block. 例如,如果您编辑了catch块中的代码,将发生这种情况。 msdn2.microsoft.com 7. Exception blocks can be combined into a single multi-catch block 异常块可以组合到单个multi-catch块中 www.infoq.com 8. Cleanup Code Must Be in a finally or a catch Block, Not Following a catch 清除代码必须位处于finally或catch块中,不能处于catch之后 msdn2.microsoft.com 9. Using Specific Exceptions in a Catch Block 在Catch块中使用特定异常 msdn2.microsoft.com 10. You should always wrap data access calls in a Try. Catch block, as in the following example 您应该始终在Try.Catch块中包装数据访问调用,如以下示例中所示 msdn.microsoft.com 1. Consider using a local catch block to clean up memory 应考虑使用局部catch块清理内存 msdn2.microsoft.com 2. When called in a CATCH block 当在CATCH块中调用时 msdn2.microsoft.com 3. Only from a Catch block of the same construction 1 只能从同一个构造1的Catch块分支 msdn2.microsoft.com 4. Error Filtering in the Catch Block Catch块中的错误筛选 msdn2.microsoft.com 5. How to: Use Specific Exceptions in a Catch Block 如何:在Catch块中使用特定异常 msdn2.microsoft.com 6. How to: Test Code with a Try. . . Catch Block in Visual Basic 如何:在VisualBasic中使用Try.Catch块测试代码 msdn2.microsoft.com 7. How to: Filter Errors in a Catch Block in Visual Basic 如何:在VisualBasic中筛选Catch块中的错误 msdn2.microsoft.com |
||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。