本文整理了Java中java.net.ConnectException.getStackTrace()
方法的一些代码示例,展示了ConnectException.getStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConnectException.getStackTrace()
方法的具体详情如下:
包路径:java.net.ConnectException
类名称:ConnectException
方法名:getStackTrace
暂无
代码示例来源:origin: netty/netty
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: redisson/redisson
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: io.netty/netty
private static void connect(SelectionKey k) throws IOException {
NioClientSocketChannel ch = (NioClientSocketChannel) k.attachment();
try {
if (ch.channel.finishConnect()) {
k.cancel();
if (ch.timoutTimer != null) {
ch.timoutTimer.cancel();
}
ch.worker.register(ch, ch.connectFuture);
}
} catch (ConnectException e) {
ConnectException newE = new ConnectException(e.getMessage() + ": " + ch.requestedRemoteAddress);
newE.setStackTrace(e.getStackTrace());
throw newE;
}
}
代码示例来源:origin: wildfly/wildfly
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: org.wildfly.core/wildfly-protocol
@Override
public final ConnectException couldNotConnect(final URI uri) {
final ConnectException result = new ConnectException(String.format(getLoggingLocale(), couldNotConnect$str(), uri));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidByteToken = "WFLYPRT0030: Invalid byte token. Expecting '%d' received '%d'";
代码示例来源:origin: wildfly/wildfly-core
@Override
public final ConnectException couldNotConnect(final URI uri) {
final ConnectException result = new ConnectException(String.format(getLoggingLocale(), couldNotConnect$str(), uri));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidByteToken = "WFLYPRT0030: Invalid byte token. Expecting '%d' received '%d'";
代码示例来源:origin: com.aliyun.openservices/ons-client
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: org.wildfly.core/wildfly-protocol
@Override
public final ConnectException failedToConnect(final URI uri, final Exception cause) {
final ConnectException result = new ConnectException(String.format(getLoggingLocale(), failedToConnect$str(), uri));
result.initCause(cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String channelClosed = "WFLYPRT0054: Channel closed";
代码示例来源:origin: wildfly/wildfly-core
@Override
public final ConnectException failedToConnect(final URI uri, final Exception cause) {
final ConnectException result = new ConnectException(String.format(getLoggingLocale(), failedToConnect$str(), uri));
result.initCause(cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String channelClosed = "WFLYPRT0054: Channel closed";
代码示例来源:origin: org.apache.hbase.thirdparty/hbase-shaded-netty
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: apache/activemq-artemis
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: apache/activemq-artemis
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: com.couchbase.client/core-io
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: org.apache.ratis/ratis-proto-shaded
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: couchbase/couchbase-jvm-core
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: io.bitsensor/proto
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
代码示例来源:origin: com.datastax.oss/java-driver-core-shaded
AnnotatedConnectException(ConnectException exception, SocketAddress remoteAddress) {
super(exception.getMessage() + ": " + remoteAddress);
initCause(exception);
setStackTrace(exception.getStackTrace());
}
内容来源于网络,如有侵权,请联系作者删除!