LOG.warn("TFSUnauthorizedException encountered, unable to connect to TFS. " +
"Check credentials and endpoint.");
}
} catch (TECoreException e) {
if (e.getMessage().contains("TF30059")) {
throw new DefectTrackerUnavailableException(e,
"TFS is unavailable (TF30059 error). More details are available in the error logs.");
} else {
throw new DefectTrackerUnavailableException(e,
"An exception occurred while attempting to connect to TFS. " +
"Check the error logs for more details.");
}
}