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; }
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; }