本文整理了Java中org.apache.coyote.Response.setErrorException
方法的一些代码示例,展示了Response.setErrorException
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.setErrorException
方法的具体详情如下:
包路径:org.apache.coyote.Response
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!