mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-29 02:39:04 +00:00
Improve ExposeInvocationInterceptor exception message
Closes gh-24293
This commit is contained in:
committed by
Sam Brannen
parent
ffc1f960f9
commit
132805133d
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user