Skip to content

Commit

Permalink
Improve ExposeInvocationInterceptor exception message
Browse files Browse the repository at this point in the history
Closes gh-24293
  • Loading branch information
lixiaolong11000 authored and sbrannen committed Jan 7, 2020
1 parent ffc1f96 commit 1328051
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -73,7 +73,9 @@ public static MethodInvocation currentInvocation() throws IllegalStateException
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;
}
Expand Down

0 comments on commit 1328051

Please sign in to comment.