On throwable.

@param cause
the cause
548046
public void onThrowable(Throwable cause) {
        this.cause = cause;
        getSelf().tell(RequestWorkerMsgType.PROCESS_ON_EXCEPTION, getSelf());

    }
915848
private void dispose(final Throwable cause) {
        assertUnlocked();
        
        lock.lock();
        try {
            if (procThreads == null) {
                // Already disposed
                return;
            }
            for (RequestProcessor processor : procThreads) {
                processor.dispose();
            }
            procThreads = null;
        } finally {
            lock.unlock();
        }

        if (cause == null) {
            fireConnectionClosed();
        } else {
            fireConnectionClosedOnError(cause);
        }

        lock.lock();
        try {
            clearEmptyRequest();
            exchanges = null;
            cmParams = null;
            pendingResponseAcks = null;
            pendingRequestAcks = null;
            notEmpty.signalAll();
            notFull.signalAll();
            drained.signalAll();
        } finally {
            lock.unlock();
        }
        
        httpSender.destroy();
        schedExec.shutdownNow();
    }
790537
public static KbRuntimeException fromThrowable(Throwable cause) {
    return (cause instanceof KbRuntimeException)
                   ? (KbRuntimeException) cause
                   : new KbRuntimeException(cause);
  }
802207
protected String handleError(final String message, final Throwable cause) {
        notifier().error(formatMessage(message), cause);
        return formatMessage(message);
    }
107505
public void requestFailed (final Exception cause)
    {
        EventQueue.invokeLater(new Runnable() {
            public void run () {
                _target.requestFailed(cause);
            }
        });
    }
666267
public Status withCause(Throwable cause) {
    if (Objects.equal(this.cause, cause)) {
      return this;
    }
    return new Status(this.code, this.description, cause);
  }
251919
public final void infoDebug(final Throwable cause, final String message)
    {
        logDebug(Level.INFO, cause, message);
    }
380154
@Override
  public void onException(final Throwable cause, final SocketAddress remoteAddress, final T message) {
    if (LOG.isLoggable(Level.FINEST)) {
      LOG.log(Level.FINEST, "Error sending message " + message + " to " + remoteAddress, cause);
    }
  }
774510
protected void error(String message, Element source, Throwable cause) {
    logger.error(message);
  }
263157
static Throwable cause(Throwable e)
  {
    while (e.getCause() != null
        && (e instanceof InstantiationException
            || e instanceof InvocationTargetException
            || e.getClass().equals(RuntimeExceptionConfig.class))) {
      e = e.getCause();
    }
    
    return e;
  }
185246
public static void addThrowableAndCauses(List<ThrowableDTO> exceptions, Throwable exception) {
        if (exception != null) {
            ThrowableDTO dto = new ThrowableDTO(exception);
            exceptions.add(dto);
            Throwable cause = exception.getCause();
            if (cause != null && cause != exception) {
                addThrowableAndCauses(exceptions, cause);
            }
        }
    }
95921
public void onFailure (Throwable cause)
    {
        _panel.clear();
        _panel.add(Widgets.newLabel(formatError(cause), "errorLabel"));
        Console.log("Service request failed", cause);
    }
638646
public void add(String message, IOException cause) {
        causes.add(new IOException(message, cause));
    }
111495
public void handleException(Throwable throwable) {
        log.debug("Handle exception: {} with: {}", throwable.getMessage(), exceptionHandler);
        if (exceptionHandler != null) {
            exceptionHandler.handleException(throwable);
        } else {
            log.error("Connection exception", throwable);
            throw new RuntimeException(throwable);
        }
    }
174069
public static void fireCause(Throwable t) {
        if (t != null) {
            Throwable cause = t.getCause();
            if (cause == null) {
                cause = t;
            }
            fire(cause);
        }
    }
767035
protected final boolean tryClose(Throwable cause) {
        if (setState(State.OPEN, State.CLOSED)) {
            addObjectOrEvent(new CloseEvent(cause));
            return true;
        }
        return false;
    }
390388
@Override
    public void stop(Throwable cause) throws Exception {
        stopping = true;
        if (task != null) {
            task.cancel(true);
        }
        super.stop(cause);
    }