[Bug #921] Showing a proper error message if there are problems creating HTTP connection.

FEA: ItEr72S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-03-14 12:20:09 +01:00
parent a75965a84c
commit 96ec240e4f

View file

@ -147,15 +147,15 @@ public class SubcontractedTasksModel implements ISubcontractedTasksModel {
NaiveTrustProvider.setAlwaysTrust(true);
WebClient client = WebClient.create(externalCompany.getAppURI());
client.path("ws/rest/subcontract");
Util.addAuthorizationHeader(client, externalCompany
.getOurCompanyLogin(), externalCompany
.getOurCompanyPassword());
try {
WebClient client = WebClient.create(externalCompany.getAppURI());
client.path("ws/rest/subcontract");
Util.addAuthorizationHeader(client, externalCompany
.getOurCompanyLogin(), externalCompany
.getOurCompanyPassword());
InstanceConstraintViolationsListDTO instanceConstraintViolationsListDTO = client
.post(subcontractedTaskDataDTO,
InstanceConstraintViolationsListDTO.class);