org.apache.coyote.Response.setErrorException()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(216)

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

Response.setErrorException介绍

[英]Set the error Exception that occurred during request processing.
[中]设置请求处理期间发生的错误异常。

代码示例

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Flush the output buffer
 */
private void flush() {
  try {
    outputBuffer.flush();
  } catch (IOException e) {
    // Set error flag
    error = true;
    response.setErrorException(e);
  }
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

@Override
protected final void doPush(Request pushTarget) {
  try {
    stream.push(pushTarget);
  } catch (IOException ioe) {
    setErrorState(ErrorState.CLOSE_CONNECTION_NOW, ioe);
    response.setErrorException(ioe);
  }
}

代码示例来源:origin: org.jboss.web/jbossweb

@Override
  public void failed(Throwable exc, NioChannel attachment) {
    processor.getResponse().setErrorException(exc);
    endpoint.removeEventChannel(attachment);
    semaphore.release();
    if (!endpoint.processChannel(attachment, SocketStatus.ERROR)) {
      endpoint.closeChannel(attachment);
    }
  }
};

代码示例来源:origin: org.jboss.web/jbossweb

@Override
  public void failed(Throwable exc, NioChannel attachment) {
    processor.getResponse().setErrorException(exc);
    endpoint.removeEventChannel(attachment);
    semaphore.release();
    if (!endpoint.processChannel(attachment, SocketStatus.ERROR)) {
      endpoint.closeChannel(attachment);
    }
  }
};

代码示例来源:origin: org.jboss.web/jbossweb

channel.read(bbuf, readTimeout, TimeUnit.MILLISECONDS, channel, this.completionHandler);
} catch (Exception e) {
  processor.getResponse().setErrorException(e);
  if (CoyoteLogger.HTTP_LOGGER.isDebugEnabled()) {
    CoyoteLogger.HTTP_LOGGER.errorWithNonBlockingRead(e);

代码示例来源:origin: org.jboss.web/jbossweb

processor.getResponse().setErrorException(e);
endpoint.removeEventChannel(attachment);
if (!endpoint.processChannel(attachment, SocketStatus.ERROR)) {

代码示例来源:origin: org.jboss.web/jbossweb

channel.write(bbuf, writeTimeout, TimeUnit.MILLISECONDS, channel, completionHandler);
} catch (Exception e) {
  processor.getResponse().setErrorException(e);
  if (CoyoteLogger.HTTP_LOGGER.isDebugEnabled()) {
    CoyoteLogger.HTTP_LOGGER.errorWithNonBlockingWrite(e);

代码示例来源:origin: org.glassfish.metro/webservices-extra

response.setErrorException(ex);

代码示例来源:origin: jboss.web/jbossweb

response.setErrorException(e);

代码示例来源:origin: org.jboss.web/jbossweb

response.setErrorException(e);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

response.setErrorException(e);

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

response.setErrorException(e);

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

response.setErrorException(e);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

response.setErrorException(e);

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

response.setErrorException(e);

代码示例来源:origin: jboss.web/jbossweb

response.setErrorException(e);

代码示例来源:origin: codefollower/Tomcat-Research

response.setErrorException(e);

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

response.setErrorException(e);

代码示例来源:origin: org.jboss.web/jbossweb

response.setErrorException(e);

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

res.setErrorException(iex);
setStatus(JK_STATUS_ERROR);

相关文章