java.io.IOException.fillInStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中java.io.IOException.fillInStackTrace()方法的一些代码示例,展示了IOException.fillInStackTrace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IOException.fillInStackTrace()方法的具体详情如下:
包路径:java.io.IOException
类名称:IOException
方法名:fillInStackTrace

IOException.fillInStackTrace介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

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();
    }
  }
}

代码示例来源:origin: nutzam/nutz

e2.fillInStackTrace();

代码示例来源:origin: org.apache.hadoop/hadoop-common

call.error.fillInStackTrace();
 throw call.error;
} else { // local exception

代码示例来源:origin: google/ExoPlayer

if (!current.exceptionCleared) {
 current.exceptionThrown = true;
 throw (IOException) current.exception.fillInStackTrace();
} else {
 currentSegmentIndex++;

代码示例来源:origin: apache/hbase

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);
 }
}

代码示例来源:origin: google/ExoPlayer

if (!current.exceptionCleared) {
 current.exceptionThrown = true;
 throw (IOException) current.exception.fillInStackTrace();
} else {
 currentSegmentIndex++;

代码示例来源:origin: webx/citrus

@Override
  public Resource createRelative(String relativePath) throws IOException {
    throw (IOException) ioe.fillInStackTrace();
  }
}

代码示例来源:origin: webx/citrus

@Override
  public Resource createRelative(String relativePath) throws IOException {
    throw (IOException) ioe.fillInStackTrace();
  }
}

代码示例来源:origin: webx/citrus

@Override
public File getFile() throws IOException {
  throw (IOException) ioe.fillInStackTrace();
}

代码示例来源:origin: webx/citrus

@Override
public URL getURL() throws IOException {
  throw (IOException) ioe.fillInStackTrace();
}

代码示例来源:origin: webx/citrus

public InputStream getInputStream() throws IOException {
  throw (IOException) ioe.fillInStackTrace();
}

代码示例来源:origin: webx/citrus

@Override
public File getFile() throws IOException {
  throw (IOException) ioe.fillInStackTrace();
}

代码示例来源:origin: webx/citrus

@Override
public URL getURL() throws IOException {
  throw (IOException) ioe.fillInStackTrace();
}

代码示例来源:origin: webx/citrus

public InputStream getInputStream() throws IOException {
  throw (IOException) ioe.fillInStackTrace();
}

代码示例来源:origin: apache/cloudstack

throw e;
} catch (IOException e) {
  e.fillInStackTrace();
  printlnError("Error executing: " + command);
  printlnError(e);

代码示例来源:origin: jfaster/mango

throw e;
} catch (IOException e) {
 e.fillInStackTrace();
 printlnError("Error executing: " + command);
 printlnError(e);

代码示例来源:origin: org.apache.hbase/hbase-client

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);
 }
}

代码示例来源:origin: OpenNMS/opennms

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);
  }
}

代码示例来源:origin: boonproject/boon

public void methodThatThrowsException0() throws IOException {
  IOException ioe =  new IOException( "ROOT Bad stuff happens to good people" );
  ioe.fillInStackTrace();
  throw ioe;
}

代码示例来源:origin: kaazing/gateway

@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);
}

相关文章