@AfterThrowing
2021-03-29 08:29
标签:cep art print log int net sys tail com @AfterThrowing(throwing="ex", pointcut="within(com.xms.controller.*)") public void four(Exception ex){ 参考:https://blog.csdn.net/owen_william/article/details/50812780 @AfterThrowing 标签:cep art print log int net sys tail com 原文地址:https://www.cnblogs.com/yingyigongzi/p/9305814.html
System.out.println("four");
ex.printStackTrace();//打印异常信息
StackTraceElement []elements=ex.getStackTrace();
//记录异常信息
System.out.println("-->"+elements[0].toString());
}