public class MailConnectException extends MessagingException
ConnectException,
序列化表格| 构造器和说明 |
|---|
MailConnectException(SocketConnectException cex)
Constructs a MailConnectException.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getConnectionTimeout()
The timeout used for the connection attempt.
|
String |
getHost()
The host we were trying to connect to.
|
int |
getPort()
The port we were trying to connect to.
|
getCause, getNextException, setNextException, toStringpublic MailConnectException(SocketConnectException cex)
cex - the SocketConnectException with the detailspublic String getHost()
public int getPort()
public int getConnectionTimeout()
Copyright © 2021 Oracle. All rights reserved.