Code examples for InvocationTargetException

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.
92:	throw e.getCause(); 
Full Snippet Info
8
CodeRank
116:	throw e.getTargetException(); 
Full Snippet Info
8
CodeRank
82:	Throwable cause = userException.getCause() != null 
83:	? userException.getCause() 
Full Snippet Info
8
CodeRank
66:	e.printStackTrace(); 
Full Snippet Info
7
CodeRank
120:	final Throwable target = e.getTargetException(); 
-
124:	ErlideUIPlugin.log(e); 
125:	if (e.getMessage() != null && e.getMessage().length() > 0) { 
126:	displayMessageDialog(e.getMessage(), shell, title, message); 
Full Snippet Info
7
CodeRank
103:	Throwable targetEx = ex.getTargetException(); 
-
107:	ReflectionUtils.handleInvocationTargetException(ex); 
Full Snippet Info
7
CodeRank
100:	Throwable cause = userException.getCause() != null 
101:	? userException.getCause() 
Full Snippet Info
7
CodeRank
123:	Throwable cause = e.getCause(); 
124:	throw new ConfigurationException(String.format("%s.create() threw an error: %s", 
-
126:	cause == null ? e.getClass().getName() + " " + e.getMessage() : cause.getClass().getName() + " " + cause.getMessage()), 
Full Snippet Info
7
CodeRank
116:	throw e.getTargetException(); 
Full Snippet Info
7
CodeRank
92:	throw e.getCause(); 
Full Snippet Info
7
CodeRank
59:	throw Interceptors.rethrow(e.getCause()); 
Full Snippet Info
8
CodeRank
120:	final Throwable target = e.getTargetException(); 
-
124:	ErlideUIPlugin.log(e); 
125:	if (e.getMessage() != null && e.getMessage().length() > 0) { 
126:	displayMessageDialog(e.getMessage(), shell, title, message); 
Full Snippet Info
7
CodeRank
49:	e.printStackTrace(); 
Full Snippet Info
7
CodeRank
148:	if (ex.getCause() instanceof RuntimeException) { 
149:	throw (RuntimeException) ex.getCause(); 
-
151:	throw new OpenGammaRuntimeException(ex.getMessage(), ex); 
Full Snippet Info
7
CodeRank
58:	throw Interceptors.rethrow(e.getCause()); 
Full Snippet Info
8
CodeRank
68:	ReflectionUtils.rethrowRuntimeException(ex.getTargetException()); 
Full Snippet Info
7
CodeRank
37:	throw e.getCause(); 
Full Snippet Info
7
CodeRank
63:	throw e.getCause(); 
Full Snippet Info
8
CodeRank
14:	throw e.getTargetException(); 
Full Snippet Info
7
CodeRank
87:	throw new IllegalStateException("WebSphere addPreDefinePlugin method threw exception", ex.getCause()); 
Full Snippet Info
7
CodeRank