private void checkFailure() throws IOException { assert Thread.holdsLock(this); final IOException failure = this.failure; if (failure != null) { failure.fillInStackTrace(); try { throw failure; } finally { clearQueue(); notifyAll(); } } }
call.error.fillInStackTrace(); throw call.error; } else { // local exception
if (!current.exceptionCleared) { current.exceptionThrown = true; throw (IOException) current.exception.fillInStackTrace(); } else { currentSegmentIndex++;
private void onCallFinished(Call call, HBaseRpcController hrc, InetSocketAddress addr, RpcCallback<Message> callback) { call.callStats.setCallTimeMs(EnvironmentEdgeManager.currentTime() - call.getStartTime()); if (metrics != null) { metrics.updateRpc(call.md, call.param, call.callStats); } if (LOG.isTraceEnabled()) { LOG.trace( "Call: " + call.md.getName() + ", callTime: " + call.callStats.getCallTimeMs() + "ms"); } if (call.error != null) { if (call.error instanceof RemoteException) { call.error.fillInStackTrace(); hrc.setFailed(call.error); } else { hrc.setFailed(wrapException(addr, call.error)); } callback.run(null); } else { hrc.setDone(call.cells); callback.run(call.response); } }
if (!current.exceptionCleared) { current.exceptionThrown = true; throw (IOException) current.exception.fillInStackTrace(); } else { currentSegmentIndex++;
@Override public Resource createRelative(String relativePath) throws IOException { throw (IOException) ioe.fillInStackTrace(); } }
@Override public Resource createRelative(String relativePath) throws IOException { throw (IOException) ioe.fillInStackTrace(); } }
@Override public File getFile() throws IOException { throw (IOException) ioe.fillInStackTrace(); }
@Override public URL getURL() throws IOException { throw (IOException) ioe.fillInStackTrace(); }
public InputStream getInputStream() throws IOException { throw (IOException) ioe.fillInStackTrace(); }
@Override public File getFile() throws IOException { throw (IOException) ioe.fillInStackTrace(); }
@Override public URL getURL() throws IOException { throw (IOException) ioe.fillInStackTrace(); }
public InputStream getInputStream() throws IOException { throw (IOException) ioe.fillInStackTrace(); }
throw e; } catch (IOException e) { e.fillInStackTrace(); printlnError("Error executing: " + command); printlnError(e);
throw e; } catch (IOException e) { e.fillInStackTrace(); printlnError("Error executing: " + command); printlnError(e);
private void onCallFinished(Call call, HBaseRpcController hrc, InetSocketAddress addr, RpcCallback<Message> callback) { call.callStats.setCallTimeMs(EnvironmentEdgeManager.currentTime() - call.getStartTime()); if (metrics != null) { metrics.updateRpc(call.md, call.param, call.callStats); } if (LOG.isTraceEnabled()) { LOG.trace( "Call: " + call.md.getName() + ", callTime: " + call.callStats.getCallTimeMs() + "ms"); } if (call.error != null) { if (call.error instanceof RemoteException) { call.error.fillInStackTrace(); hrc.setFailed(call.error); } else { hrc.setFailed(wrapException(addr, call.error)); } callback.run(null); } else { hrc.setDone(call.cells); callback.run(call.response); } }
public void closeConnection() { try { if (m_httpSocket != null) { m_httpSocket.close(); m_httpSocket = null; } } catch (final IOException e) { e.fillInStackTrace(); HttpMonitor.LOG.warn("Error closing socket connection", e); } }
public void methodThatThrowsException0() throws IOException { IOException ioe = new IOException( "ROOT Bad stuff happens to good people" ); ioe.fillInStackTrace(); throw ioe; }
@Override protected void doSessionClosed(HttpAcceptSession session) throws Exception { SseSession sseSession = SSE_SESSION_KEY.remove(session); if (sseSession != null && !sseSession.isClosing()) { sseSession.reset(new IOException(LoggingUtils.EARLY_TERMINATION_OF_IOSESSION_MESSAGE).fillInStackTrace()); } IoFilterChain filterChain = session.getFilterChain(); removeBridgeFilters(filterChain); }