예제 #1
0
 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;
 }
예제 #2
0
        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;
        }