Class ExceptionEventListener
java.lang.Object
club.zhcs.lina.starter.exception.event.ExceptionEventListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<ExceptionEvent>
- Direct Known Subclasses:
WechatWorkRobotExceptionEventListener
public abstract class ExceptionEventListener
extends Object
implements org.springframework.context.ApplicationListener<ExceptionEvent>
- Author:
- kerbores(kerbores@riemann.tech)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void处理异常voidonApplicationEvent(ExceptionEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
ExceptionEventListener
public ExceptionEventListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<ExceptionEvent>- Parameters:
event-- See Also:
-
handleException
处理异常- Parameters:
e- 异常包装信息
-