package com.onaro.sanscreen.client.error; import java.util.EventListener; /** * The interface for evaluating and handling errors in the client. */ public interface ErrorHandler extends EventListener { /** * Allow the central error handling to ask a handler to evaluate an error. * The handler may choose to handle or ask to forward it to another handler. * @param shortDescription (Optional) a short description of the error. * @param exception the error that occurred. * @return true if the error was handled. */ public boolean handle(String shortDescription, Throwable exception); }