java.lang.Object
io.github.astrapi69.design.pattern.observer.exception.handlers.AbstractExceptionHandler
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DefaultExceptionHandler

public abstract class AbstractExceptionHandler extends Object implements Serializable
The abstract class AbstractExceptionHandler handles all exceptions by managing a list of ExceptionListener objects and updating them when an exception event occurs
See Also:
  • Constructor Details

    • AbstractExceptionHandler

      public AbstractExceptionHandler()
  • Method Details

    • updateEvent

      public abstract void updateEvent(ExceptionListener listener, ExceptionEvent event)
      Updates the specified listener with the given exception event This method must be implemented by subclasses to define how the event is propagated to the listener
      Parameters:
      listener - the listener to be updated
      event - the exception event to be propagated to the listener