I have a few classes that perform background tasks that might raise exceptions. They all implement the following interface:
public interface HowDoYouCallMe {
void addExceptionHandler(ExceptionHandler handler);
}
When one of the background tasks raises an exception, all the ExceptionHandlers are informed of the exception so that it can be properly handled / propagated.
How would you call the interface? ExceptionHandlerObservable (not great)?
It looks like the Observer pattern applied to exception handling. So the interface would probably be named
ExceptionObservableor something of the sort.