public void errorOccurred(I2PSession session, String message, Throwable error) { _l.errorOccurred(session, message, error); } }
/** * Pass off the error to the listener * Misspelled, oh well. * @param error non-null */ @Override void propogateError(String msg, Throwable error) { _primary.propogateError(msg, error); if (_sessionListener != null) _sessionListener.errorOccurred(this, msg, error); }
/** * Pass off the error to the listener * Misspelled, oh well. * @param error non-null */ void propogateError(String msg, Throwable error) { // Only log as WARN if the router went away int level; String msgpfx; if (error instanceof EOFException) { level = Log.WARN; msgpfx = "Router closed connection: "; } else { level = Log.ERROR; msgpfx = "Error occurred communicating with router: "; } if (_log.shouldLog(level)) _log.log(level, getPrefix() + msgpfx + msg, error); if (_sessionListener != null) _sessionListener.errorOccurred(this, msg, error); // Save for throwing out of connect() _errorMessage = msg; _errorCause = error; }