errors.add(new DetailedIllegalArgumentException(exMessage, toMap(error))); else if (exClass.equals(ConnectionNotFoundException.class.getName())) { errors.add(new ConnectionNotFoundException(exMessage, toMap(error))); } else if (exClass.equals(PointNotFoundException.class.getName())) { int pointIndex = error.get("point_index").asInt();
return false; if (subnetworkFrom != subnetworkTo) { throw new ConnectionNotFoundException("Connection between locations not found. Different subnetworks " + subnetworkFrom + " vs. " + subnetworkTo, new HashMap<String, Object>());
altRsp.addError(new ConnectionNotFoundException("Connection between locations not found", Collections.<String, Object>emptyMap()));
return false; if (subnetworkFrom != subnetworkTo) { throw new ConnectionNotFoundException("Connection between locations not found. Different subnetworks " + subnetworkFrom + " vs. " + subnetworkTo, new HashMap<String, Object>());
return false; if (subnetworkFrom != subnetworkTo) { throw new ConnectionNotFoundException("Connection between locations not found. Different subnetworks " + subnetworkFrom + " vs. " + subnetworkTo, new HashMap<String, Object>());
altRsp.addError(new ConnectionNotFoundException("Connection between locations not found", Collections.<String, Object>emptyMap()));
altRsp.addError(new ConnectionNotFoundException("Connection between locations not found", Collections.<String, Object>emptyMap()));