Best code examples for Java 8 Exception class (java.lang.Exception)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Exception class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 Exception examples from Open Source projects
This code example shows how to use the following methods: getMessage
146:	+ " .  Error is "+ e.getMessage(); 
-
225:	log.error(msg, e); 
226:	throw new AxisFault(msg, e); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep
140:	Thread.sleep(granularityperiod * 2); 
-
208:	Thread.sleep(granularityperiod * 2); 
-
275:	Thread.sleep(granularityperiod * 2); 
-
306:	mbsfih.setGetAttributeException( 
307:	new ReflectionException(new RuntimeException(), 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
93:	throw new ReflectionException(new NoSuchMethodException(name)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMessage
100:	String msg = "ReflectionException: " + e.getMessage(); 
101:	throw new PluginException(msg, e); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods:
82:	throw new ReflectionException(new NoSuchMethodException(actionName)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
92:	throw new ReflectionException(e, "Exception occured while invoking " + toSimpleName(method)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
369:	throw new ReflectionException(x); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
193:	throw new ReflectionException( 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
105:	throw new ReflectionException(e, "Exception occurred while invoking " + toSimpleName(method)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
171:	throw new ReflectionException(e); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
90:	throw new ReflectionException(new NoSuchMethodException(name)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
126:	throw new ReflectionException(e); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage
458:	errorMessage = e.getMessage(); 
-
461:	throw new AxisFault(errorMessage, e); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep, printStackTrace
46:	e.printStackTrace(); 
-
49:	Thread.sleep(1000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMessage
66:	out.print(e.getMessage()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage
66:	out.print(e.getMessage()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage
14:	super(e.getMessage()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage, toString
141:	if (ex.getMessage() != null) { 
142:	pceError.setMsg(ex.getMessage()); 
-
144:	pceError.setMsg(ex.toString()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage
14:	super(e.getMessage()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
194:	throw new java.lang.Exception(msg, e); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage
14:	this (e.getMessage()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMessage
11:	this(e.getMessage()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
292:	throw new Exception("No root node found!"); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: printStackTrace
371:	e.printStackTrace(); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: toString
42:	try { configArray =new JSONArray("[{ \"ssid\" = \"ssid\", \"security\"=\"security\", \"key\"=\"key\" }]"); } catch (Exception ex) { Assert.fail(ex.toString()); } 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
147:	throw new Exception("ROBO_UIAUTOMATOR_JAR is not set"); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
138:	throw new Exception("wrong version " + co.getVersion() + " != " + val); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: toString
62:	String msg = e.toString(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: printStackTrace
212:	e.printStackTrace(); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods:
28:	StackTraceElement elt = new Exception().getStackTrace()[0]; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
182:	throw new Exception("ROBO_TEST_RUNNER is not set"); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
138:	throw new Exception("wrong version " + co.getVersion() + " != " + val); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
17:	throw new Exception(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getStackTrace
161:	Log.e( TAG, (e.getStackTrace()).toString() ); 
-
196:	Log.e( TAG, (e.getStackTrace()).toString() ); 
Full Snippet Info
2
CodeRank
This code example shows how to use the following methods:
43:	throw new Exception("Invalid HTTP Response code " + connection.getResponseCode()); 
Full Snippet Info
3
CodeRank
Related Java 8 Exception Questions & Answers:
Other Java 8 Exception Examples
14:	      builder.append(line);
15:	    }
16:	  } catch (Exception e) {
17:	    e.printStackTrace();
18:	  } finally {

Read More

10:				// start playing
11:				videoPreview.start();
12:			} catch (Exception e) {
13:				e.printStackTrace();
14:			}

Read More

18:	            }
19:	        }
20:	        catch(Exception ex){}
21:	    }
22:	}

Read More

18:	        }
19:	        catch(Exception ex){}
20:	    }
21:	}
22:

Read More