Class AbstractExceptionHandler
java.lang.Object
io.github.astrapi69.design.pattern.observer.exception.handlers.AbstractExceptionHandler
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultExceptionHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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
-
Constructor Details
-
AbstractExceptionHandler
public AbstractExceptionHandler()
-
-
Method Details
-
updateEvent
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 updatedevent
- the exception event to be propagated to the listener
-