Tag: faultcontract

客户端不会捕获通用的FaultException ,只有FaultException

我已经阅读了所有有关此内容的内容,但也许我错过了一些东西(好吧,我肯定错过了一些东西,否则它会有效) 我在服务器业务层中抛出了一些exception错误: public class RfcException : Exception { public RfcException(string _m, Exception _inner) : base(_m, _inner) { } public Dictionary ExtendedProperties { get { return extendedProperties; } protected set { extendedProperties = value; } } private Dictionary extendedProperties = new Dictionary(); } 我在服务中未处理,但我有一个IErrorHandler来捕获并创建一个FaultMessage : public class FaultErrorHandler : BehaviorExtensionElement, IErrorHandler, IServiceBehavior { public bool HandleError(Exception […]