@Override public synchronized void receive(ForeignException e) { // if we already have an exception, then ignore it if (exception != null) return; LOG.debug(name + " accepting received exception" , e); // mark that we got the error if (e != null) { exception = e; } else { exception = new ForeignException(name, ""); } // notify all the listeners dispatch(e); }
@Override public synchronized void receive(ForeignException e) { // if we already have an exception, then ignore it if (exception != null) return; LOG.debug(name + " accepting received exception" , e); // mark that we got the error if (e != null) { exception = e; } else { exception = new ForeignException(name, ""); } // notify all the listeners dispatch(e); }
@Override public synchronized void receive(ForeignException e) { // if we already have an exception, then ignore it if (exception != null) return; LOG.debug(name + " accepting received exception" , e); // mark that we got the error if (e != null) { exception = e; } else { exception = new ForeignException(name, ""); } // notify all the listeners dispatch(e); }