use of org.apache.qpid.proton.engine.Endpoint in project azure-iot-sdk-java by Azure.
the class ProtonJExceptionParser method getTransportExceptionFromProtonEndpoints.
private void getTransportExceptionFromProtonEndpoints(Endpoint... endpoints) {
for (Endpoint endpoint : endpoints) {
if (endpoint == null) {
continue;
}
ErrorCondition errorCondition = getErrorConditionFromEndpoint(endpoint);
if (errorCondition == null || errorCondition.getCondition() == null) {
continue;
}
error = errorCondition.getCondition().toString();
if (errorCondition.getDescription() != null) {
errorDescription = errorCondition.getDescription();
} else {
// log statements can assume that if error != null, errorDescription != null, too.
errorDescription = DEFAULT_ERROR_DESCRIPTION;
}
}
}
Aggregations