예제 #1
0
 public static void ThrowAspectExecuteError(IMethodCallContext ctx, Exception ex)
 {
     AspectException ae = new AspectException("Exception while executing aspect, check inner exception for detail.", ex);
     if (ctx.ReturnMessage != null && ctx.ReturnMessage.Exception != null)
         ae.OriginalException = ctx.ReturnMessage.Exception;
     throw ae;
 }
예제 #2
0
        public static void ThrowAspectExecuteError(IMethodCallContext ctx, Exception ex)
        {
            AspectException ae = new AspectException("Exception while executing aspect, check inner exception for detail.", ex);

            if (ctx.ReturnMessage != null && ctx.ReturnMessage.Exception != null)
            {
                ae.OriginalException = ctx.ReturnMessage.Exception;
            }
            throw ae;
        }