我的代码中有以下重复出现的try/catch模式。使用try/catchblock来处理调用orionProxy中的方法时抛出的任何异常。asyncprivatevoiddoGetContacts(){try{currentContacts=awaitorionProxy.GetContacts();//callmethodinorionProxyShowContacts();//dosomethingaftertaskiscomplete}catch(Exceptione){orionProxy.HandleException(e);//handlethrownexception}}