Browse Source

Improve ExposeInvocationInterceptor exception message

Closes gh-24293
pull/24314/head
lixiaolong11000 6 years ago committed by Sam Brannen
parent
commit
132805133d
  1. 4
      spring-aop/src/main/java/org/springframework/aop/interceptor/ExposeInvocationInterceptor.java

4
spring-aop/src/main/java/org/springframework/aop/interceptor/ExposeInvocationInterceptor.java

@ -73,7 +73,9 @@ public final class ExposeInvocationInterceptor implements MethodInterceptor, Pri @@ -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;
}

Loading…
Cancel
Save