/** * Log at error level. * * @param message message to log * @param t ecxeption occured */ public void error(String message, Throwable t) { // Must not be final so that we can mock it in EasyMock for our tests logHandler.error(message, t); if (debugStore != null) { debugStore.log(message, t); } }
// Final private error log for use in the constructor above private void intError(String message, Throwable t) { logHandler.error(message, t); debugStore.log(message, t); }