package org.limewire.service; /** * Defines the interface for a class to receive generic and specific error * messages. See {@link ErrorService} for information on how errors are * set to an <code>ErrorCallback</code> class. */ public interface ErrorCallback { /** * Displays an error stack trace to the user with a generic message. * * @param t the <code>Throwable</code> instance containing the * stack trace to display */ void error(Throwable t); /** * Displays an error stack trace to the user with a specific message. * * @param t the <code>Throwable</code> instance containing the stack * trace to display * @param msg the message to display. */ void error(Throwable t, String msg); }