/** * Something has happened. We need to tell the user or someone. * * @param source * The cause of the message, a Component if possible. * @param message * The message to pass to the user */ public static void informUser(Object source, String message) { LOGGER.debug(message); fireCapture(new ReporterEvent(source, message)); }
/** * Something has gone wrong. We need to tell the user or someone, but we can * carry on. In general having caught an exception and passed it to * Reporter.informUser(), you should not throw another Exception. Called to * fire a commandEntered event to all the Listeners * * @param source * The cause of the problem, a Component if possible. * @param prob * The Exception that was thrown */ public static void informUser(Object source, Throwable prob) { Class<?> cat = (source != null) ? source.getClass() : Reporter.class; Logger templog = LoggerFactory.getLogger(cat); templog.warn(prob.getMessage(), prob); fireCapture(new ReporterEvent(source, prob)); }
/** * Something has gone wrong. We need to tell the user or someone, but we can * carry on. In general having caught an exception and passed it to * Reporter.informUser(), you should not throw another Exception. Called to * fire a commandEntered event to all the Listeners * * @param source * The cause of the problem, a Component if possible. * @param prob * The Exception that was thrown */ public static void informUser(Object source, LucidException prob) { Class<?> cat = (source != null) ? source.getClass() : Reporter.class; Logger templog = LoggerFactory.getLogger(cat); templog.warn(prob.getMessage(), prob); fireCapture(new ReporterEvent(source, prob)); }
/** * Something has gone wrong. We need to tell the user or someone, but we can * carry on. In general having caught an exception and passed it to * Reporter.informUser(), you should not throw another Exception. Called to * fire a commandEntered event to all the Listeners * * @param source * The cause of the problem, a Component if possible. * @param prob * The Exception that was thrown */ public static void informUser(Object source, LucidRuntimeException prob) { Class<?> cat = (source != null) ? source.getClass() : Reporter.class; Logger templog = LoggerFactory.getLogger(cat); templog.warn(prob.getMessage(), prob); fireCapture(new ReporterEvent(source, prob)); }