Code examples for ConnectException

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
72:	new HttpClientException(new ConnectException("java.net.ConnectException: Connection timed out"))); 
Full Snippet Info
6
CodeRank
90:	assertTrue(ce.getMessage().contains("resulted in a loopback")); 
Full Snippet Info
6
CodeRank
47:	ConnectException connEx = new ConnectException( "Connection refused: connect" ); 
Full Snippet Info
5
CodeRank
545:	throw new ConnectException( 
Full Snippet Info
5
CodeRank
52:	logger.error("Error creating JodConverter - " + e.getMessage(), e); 
53:	throw new RODAServiceException("Error creating JodConverter - " 
54:	+ e.getMessage(), e); 
Full Snippet Info
5
CodeRank
53:	assertTrue(ce.getMessage().contains("resulted in a loopback")); 
Full Snippet Info
5
CodeRank
116:	ce.printStackTrace(); 
117:	Log.e(TAG, ce.getMessage(), ce); 
Full Snippet Info
5
CodeRank
41:	throw new ConnectException(String.format("Read cmdb failed [%s]", url)); 
Full Snippet Info
5
CodeRank
98:	mcClient.andThrow(new ConnectException("test")); 
Full Snippet Info
5
CodeRank
421:	throw new ConnectException( 
Full Snippet Info
5
CodeRank
54:	Log.writeToLog(e.getMessage(),"TestApplication"); 
55:	e.printStackTrace(); 
Full Snippet Info
5
CodeRank
97:	OnExceptionDefinition result = strategy.getExceptionPolicy(policies, null, new ConnectException("")); 
Full Snippet Info
4
CodeRank
33:	assertNull("Wrong message", new ConnectException().getMessage()); 
Full Snippet Info
5
CodeRank
53:	assertNull("Wrong message", new ConnectException().getMessage()); 
Full Snippet Info
4
CodeRank
124:	throw new ProxyException("can't not connet to " + address + ". " + e.getMessage(), e); 
Full Snippet Info
4
CodeRank
64:	assertTrue(impl.shouldBackoff(new ConnectException())); 
Full Snippet Info
5
CodeRank
61:	e.printStackTrace(System.err); 
Full Snippet Info
4
CodeRank
117:	ConnectException exception = new ConnectException(String.format("Can't get internet connection after %d exponential backoff", Defaults.MAX_RETRIES)); 
118:	addException(exception); 
Full Snippet Info
4
CodeRank
367:	throw new ConnectException(); 
Full Snippet Info
4
CodeRank
46:	" (" + e.getMessage() + ")"); 
Full Snippet Info
4
CodeRank