Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法编写一个通用的日志装饰器,它记录函数或方法内部发生的所有异常(已处理和未处理的异常),但不影响函数本身的异常处理?这对于在通用装饰器中记录异常可能很有用,但可以保留特定于函数的异常处理部分。