Class ExceptionEventListener

java.lang.Object
tech.riemann.etp.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)
  • Constructor Details

    • ExceptionEventListener

      public ExceptionEventListener()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(ExceptionEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<ExceptionEvent>
      Parameters:
      event -
      See Also:
      • ApplicationListener.onApplicationEvent(org.springframework.context.ApplicationEvent)
    • handleException

      public abstract void handleException(ExceptionEventListener.ExceptionWrapper e)
      处理异常
      Parameters:
      e - 异常包装信息