List of usage examples for java.util.concurrent ExecutionException setStackTrace
public void setStackTrace(StackTraceElement[] stackTrace)
From source file:org.limewire.mojito.handler.response.AbstractResponseHandler.java
/** * Sets the Exception which will be thrown by the * call() method./*from ww w. jav a 2 s . c o m*/ */ protected void setException(DHTException ex) { ExecutionException e = new ExecutionException(ex); e.setStackTrace(ex.getStackTrace()); exchanger.setException(e); }