I have several classes that perform background tasks that can throw exceptions. They all implement the following interface:
public interface HowDoYouCallMe {
void addExceptionHandler(ExceptionHandler handler);
}
When one of the background tasks raises an exception, all ExceptionHandlers report an exception so that it can be handled / propagated correctly.
What would you call an interface? ExceptionHandlerObservable (not big)?
source
share