捕捉異常 的英文怎麼說
中文拼音 [bǔzhuōyìcháng]
捕捉異常
英文
catching an exception-
Catch block can specify an exception type to catch
塊可以指定要捕捉的異常類型。Block to catch an exception
塊捕捉異常。Learn how to catch an exception inside a bpel process using an exception handler
學習如何使用異常處理程序捕捉bpel流程內部的異常。Lists common exception - handling tasks, such as how to catch an exception and how to filter exceptions in a
列出常見的異常處理任務,如:如何捕捉異常以及如何篩選In some cases you may want to catch an exception and throw a different exception type to provide more data
在某些情況下,可能需要通過捕捉一種異常來引發其他異常類型,以便提供更多數據。The following code example demonstrates catching an exception and incorrectly specifying it when re - throwing the exception
下面的代碼示例演示捕捉一個異常,並在再次引發該異常時對它進行錯誤的指定。If the service cannot be stopped, no exception is caught, and the method continues with the removal of the service
如果無法停止服務,並不會捕捉到任何異常,並且該方法繼續移除服務。Describes guidelines for catching exceptions
描述捕捉異常的準則。You should catch exceptions when
應捕捉異常的情況:Hence, the user code is able to catch the exception in a transparent manner
因此,用戶代碼能夠以透明方式捕捉異常。If you do not need to catch exceptions, but do need to clean up resources, consider using the
如果不需要捕捉異常,而確實需要清理資源,請考慮使用Demonstrates how to catch exceptions and notify dependent threads of the problem before exiting
演示如何捕捉異常並在退出之前通知問題的依賴線程。The task catches that exception and reports the state back properly and cleanly to the user
該任務將捕捉異常,並且正確地、清晰地向用戶報告狀態。Do not exclude any special exceptions when catching for the purpose of transferring exceptions
如果捕捉異常是為了傳輸異常,則不要排除任何特殊異常。Describes how to throw exceptions and how to catch exceptions and then throw them again
描述如何引發異常,並且描述如何在捕捉異常后再次引發這些異常。Consequently, you now add a fault handler to the createid activity which will catch the exception
因此,現在您需要向捕捉異常的createid動作添加錯誤處理。Catch blocks that catch all exceptions instead of one specific exception will now catch the asynchronous exceptions as well
捕捉所有異常而不是一個特定異常的catch塊現在也可捕捉異步異常。Throw exceptions only for extraordinary conditions, then catch exceptions in a general purpose exception handler that applies to the majority of your application, not a handler that applies to a specific exception
僅對特別條件引發異常,然後在應用於大多數應用程序的常規異常處理程序中捕捉異常,而不是在應用於特定異常的處理程序中捕捉異常。While there will be exceptions, such as code detecting whether a network connection can be established where you might get any of a large number of exceptions, any code that requires the catching of a number of exceptions under normal circumstances should give an indication that the code should be tested to see if it will succeed
可能存在異常時,例如檢測是否可以建立網路連接的代碼(這種情況下可能會出現大量異常中的任一個) ,任何需要在正常情況下捕捉異常的代碼都應該給出指示,說明應對代碼進行測試以驗證其是否能成功執行。Handle problems at the appropriate level. ( avoid catching exceptions unless you know what to do with them )
在合適的地方處理異常(避免在不知道該如何處理的情競下去捕捉異常) 。分享友人