Code examples for URISyntaxException

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.
52:	throw new IOException(e.toString()); 
Full Snippet Info
7
CodeRank
50:	URISyntaxException e = new URISyntaxException("str", "problem", 2); 
51:	assertEquals("returned incorrect reason", "problem", e.getReason()); 
52:	assertEquals("returned incorrect input", "str", e.getInput()); 
53:	assertEquals("returned incorrect index", 2, e.getIndex()); 
Full Snippet Info
6
CodeRank
70:	throw new RuntimeException("unable to generate legacy subscription URI: " + e.getMessage(), e); 
Full Snippet Info
6
CodeRank
134:	throw new IllegalStateException("Could not create URI object: " + ex.getMessage(), ex); 
Full Snippet Info
6
CodeRank
86:	DatatypeException e2 = new DatatypeException(e.getIndex(), 
87:	e.getReason()); 
88:	e2.initCause(e); 
Full Snippet Info
6
CodeRank
98:	throw new IllegalStateException("Could not get HttpServletRequest URI: " + ex.getMessage(), ex); 
Full Snippet Info
6
CodeRank
98:	throw new ServiceException("error", new URISyntaxException("", 
99:	"testException")); 
Full Snippet Info
6
CodeRank
130:	MalformedURLException exToThrow = new MalformedURLException(ex.getMessage()); 
Full Snippet Info
6
CodeRank
34:	throw new InvalidValueException(ex.getMessage(), ex); 
Full Snippet Info
6
CodeRank
46:	catch(URISyntaxException use) { System.out.println(use.getClass().getName()+": "+use.getMessage()); } 
Full Snippet Info
5
CodeRank
53:	log.error(e.getMessage(),e); 
Full Snippet Info
5
CodeRank
163:	Log.w(TAG, "Bad URI " + intentUrl + ": " + ex.getMessage()); 
Full Snippet Info
5
CodeRank
60:	Assert.fail(e.getMessage()); 
Full Snippet Info
5
CodeRank
71:	throw new URISyntaxException(url, NLS.bind("URL {0} has no protocol", url)); 
Full Snippet Info
5
CodeRank
59:	e.printStackTrace(); 
Full Snippet Info
5
CodeRank
55:	log.error(e.getLocalizedMessage(), e); 
56:	throw new AttachmentMgtException("Object conversion failed due to reason : " + e.getLocalizedMessage(), e); 
Full Snippet Info
5
CodeRank
48:	throw new IOException(e.toString()); 
Full Snippet Info
5
CodeRank
66:	throw new IOException(e.getMessage()); 
Full Snippet Info
5
CodeRank
24:	e.printStackTrace(); 
-
28:	Thread.sleep(6000); 
Full Snippet Info
5
CodeRank
50:	e.printStackTrace(); 
Full Snippet Info
5
CodeRank