public static void ThrowWeaveException(IMethodCallContext ctx, Exception inner) { WeaveException we = new WeaveException(string.Format("Weave error at [{0}][{1}.{2}].", ctx.Position, ctx.CallMessage.MethodBase.ReflectedType.Name, ctx.CallMessage.MethodName), inner); if (ctx.ReturnMessage != null && ctx.ReturnMessage.Exception != null) we.OriginalException = ctx.ReturnMessage.Exception; throw we; }
public static void ThrowWeaveException(IMethodCallContext ctx, Exception inner) { WeaveException we = new WeaveException(string.Format("Weave error at [{0}][{1}.{2}].", ctx.Position, ctx.CallMessage.MethodBase.ReflectedType.Name, ctx.CallMessage.MethodName), inner); if (ctx.ReturnMessage != null && ctx.ReturnMessage.Exception != null) { we.OriginalException = ctx.ReturnMessage.Exception; } throw we; }