#[non_exhaustive]pub struct ConnectionError {
pub time: i64,
pub address: String,
pub category: ConnectionErrorCategory,
pub dropped: bool,
pub exception_class_name: Option<String>,
pub message: Option<String>,
pub count: i64,
}Expand description
A connection error of a MessageConnector: a failed connect or a dropped connection; see
MessageConnector::get_last_error and DXEndpoint::get_last_connection_error.
It is a copy, which does not change when the connector records a newer error. A successful connection clears
nothing, so compare time or count with an error seen before to tell a new error
from an old one.
The SDK captures the errors from the log records of QD’s default logging, at any log.level and with or without a
logging listener. With another log.className nothing is captured, and a level set on QD’s
loggers com.devexperts.qd.qtp.MessageConnector, com.devexperts.qd.qtp.MessageAdapterConnection or
com.devexperts.connector.codec.ssl themselves may stop the capture.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time: i64The time of the error, in milliseconds since the epoch (UTC).
address: StringThe address the connector was configured with, the user and the password masked: the whole list of a multi-host address, not the host that failed.
category: ConnectionErrorCategoryThe category of the error.
dropped: boolWhether an established connection was dropped, as opposed to a failed connect attempt.
exception_class_name: Option<String>The class name of the Java exception, such as java.net.ConnectException; None when there is none, as for
HeartbeatTimeout.
message: Option<String>The message of the exception, or of QD’s log record when there is no exception, the user and the password
masked, at most 256 characters; None when there is none.
count: i64The number of errors of the connector up to this one.