001 package org.springframework.richclient.exceptionhandling.delegation;
002
003
004 /**
005 * A delegate that might want to handle a throwable.
006 *
007 * @author Geoffrey De Smet
008 * @since 0.3.0
009 */
010 public interface ExceptionHandlerDelegate extends Thread.UncaughtExceptionHandler {
011
012 /**
013 * Checks if the delegate wants to handle the throwable.
014 *
015 * @param thrownTrowable the thrown exception or error.
016 * @return true if this exception handler wants to handle the throwable.
017 */
018 boolean hasAppropriateHandler(Throwable thrownTrowable);
019
020 }