List of usage examples for java.lang IllegalThreadStateException initCause
public synchronized Throwable initCause(Throwable cause)
From source file:com.appdirect.sdk.support.FakeAppmarket.java
public void stop() { server.stop(0);// w w w . jav a 2 s .c om if (backgroundThreadException != null) { IllegalThreadStateException illegalThreadStateException = new IllegalThreadStateException( "One of the FakeAppMarket's request thread threw an exception. This is bad."); illegalThreadStateException.initCause(backgroundThreadException); throw illegalThreadStateException; } }