我希望能够捕捉到WebFaultException作为最具体的然后是WebFaultException(T是任何其他类型)作为更一般的情况来处理。这可能吗?try{//throwexception}catch(WebFaultExceptione){//handlemorespecifictype}catch(WebFaultExceptione){//handlemoregeneraltype}catch(Exceptione){} 最佳答案 正如其他答案所提到的;您不能直接指定捕获每个WebFaultException既不知道指
我希望能够捕捉到WebFaultException作为最具体的然后是WebFaultException(T是任何其他类型)作为更一般的情况来处理。这可能吗?try{//throwexception}catch(WebFaultExceptione){//handlemorespecifictype}catch(WebFaultExceptione){//handlemoregeneraltype}catch(Exceptione){} 最佳答案 正如其他答案所提到的;您不能直接指定捕获每个WebFaultException既不知道指