该任务将捕捉异常,并且正确地、清晰地向用户报告状态。
The task catches that exception and reports the state back properly and cleanly to the user.
在之前版本的。NET里,捕捉异常和抛出异常的线程一般是相同的。
In previous versions of.net exceptions were expected to be caught on the same thread that they were thrown on.
API契约方式需要定义抛出异常的客户机和捕捉异常的装置都需要知道的类。
The API-contract way is to define a class known to both the throwing client and the catching harness.
应用推荐