Improve exception message in AopContext.currentProxy()
Closes gh-24321
This commit is contained in:
parent
b0e4b7e29c
commit
047eefd2e2
|
@ -67,7 +67,8 @@ public final class AopContext {
|
||||||
Object proxy = currentProxy.get();
|
Object proxy = currentProxy.get();
|
||||||
if (proxy == null) {
|
if (proxy == null) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available.");
|
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available. " +
|
||||||
|
"Also Check AopContext.currentProxy() invoke in the origin thread.");
|
||||||
}
|
}
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue