Improve ExposeInvocationInterceptor exception message

Closes gh-24293
This commit is contained in:
lixiaolong11000 2020-01-07 18:03:11 +08:00 committed by Sam Brannen
parent ffc1f960f9
commit 132805133d
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ public final class ExposeInvocationInterceptor implements MethodInterceptor, Pri
throw new IllegalStateException(
"No MethodInvocation found: Check that an AOP invocation is in progress, and that the " +
"ExposeInvocationInterceptor is upfront in the interceptor chain. Specifically, note that " +
"advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor!");
"advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor! " +
"Check that ExposeInvocationInterceptor and ExposeInvocationInterceptor.currentInvocation() " +
"invoke in one Thread");
}
return mi;
}