Code example for ConnectException

0
			conn.setReadTimeout(1000);
			conn.connect();
			return DefaultSaxParser.parse(conn.getInputStream());
		} catch (Exception e) {
			m_logger.warn(String.format("Read cmdb failed [%s]", url), e);
			throw new ConnectException(String.format("Read cmdb failed [%s]", url));
		} 
	} 
 
	@Override 
	public void enableLogging(Logger logger) { 
		m_logger = logger; 
	} 
 
	@Override 
	public List<Device> getDevices(String name) throws ConnectException {
		List<Device> devices = new ArrayList<Device>();
		if (name != null && name.trim().length() > 0) {
			String cmdbQuery = String.format(m_configManager.getCmdbBaseUrl(),
					String.format("/s?q=app:%s&fl=private_ip,status,rd_duty,env", name.trim()));