mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-06 16:58:26 +08:00
optimize exception handler
This commit is contained in:
parent
06b4a8354d
commit
db90d3bdeb
@ -43,7 +43,7 @@ public class RunTimeHandler implements MethodInterceptor {
|
||||
exception.setName(e.getClass().getSimpleName());
|
||||
exception.setClassName(e.getClass().getName());
|
||||
exception.setMessage(e.getMessage());
|
||||
exception.setId(exception.getClassName() + exception.getName());
|
||||
exception.setId(exception.getClassName() +"."+ exception.getName());
|
||||
MethodNode current = MethodNodeService.getCurrentMethodNode(invocation, 0.0);
|
||||
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
|
||||
if (stackTraceElement.getClassName().equals(current.getClassName())) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user