Best code examples for Java 8 IOException class (java.io.IOException)

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

Java 8 IOException examples from Open Source projects
This code example shows how to use the following methods: getMessage
43:	log.warn(e, "Got exception!!!! Going to delete parentDir[%s]", parentDir); 
-
48:	log.error(e, "Problem deleting parentDir[%s]", parentDir); 
-
50:	throw new SegmentLoadingException(e, "%s", e.getMessage()); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods:
54:	throw new IOException("wrong lzf compressed header [" + Arrays.toString(header) + "]"); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: toString
104:	GenericTestUtils.assertExceptionContains( 
-
106:	System.out.println(e.toString()); 
-
117:	GenericTestUtils.assertExceptionContains("Unexpected empty line", e); 
118:	System.out.println(e.toString()); 
-
129:	GenericTestUtils.assertExceptionContains("Could not parse line: ", e); 
130:	System.out.println(e.toString()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: initCause, setStackTrace
237:	IOException ioe = new IOException(); 
238:	ioe.initCause(uee); 
239:	ioe.setStackTrace(uee.getStackTrace()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: initCause
77:	IOException newE = new IOException("WritableName can't load class: " + name); 
78:	newE.initCause(e); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getMessage
115:	return ERROR_UNKNOWN.createResult(e.getMessage(), e); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getMessage
46:	Log.d(TAG, "Error setting camera preview: " + e.getMessage()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: d, getMessage
71:	Log.d(TAG, e.getMessage(), e); 
-
78:	Log.d(TAG, e.getMessage(), e); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
55:	throw new IOException("Expected handle header, got [" + b + "]"); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
43:	IOException ioe = new IOException("KABOOM"); 
44:	PathIOException pe = new PathIOException(path, ioe); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
53:	throw new IOException("Stream closed"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: printStackTrace
45:	e.printStackTrace(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
60:	Mockito.doThrow(new IOException()).when(outputStream).close(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
81:	callback.onError(new IOException("unable to create file path: " + _path)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
77:	LOG.e("generateWebResourceResponse", e.getMessage(), e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, printStackTrace
24:	Log.e("Facebook", e.getMessage()); 
25:	e.printStackTrace(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: printStackTrace
74:	e.printStackTrace(); 
75:	log.error("дÈë´ÅÅÌ»º´æʧ°Ü", e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
80:	throw new IOException(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: initCause
34:	final IOException wrappedException = new IOException(message); 
35:	wrappedException.initCause(e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
93:	throw new IOException("Stream closed"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCause, getMessage
39:	if (ioe.getMessage()!=null && ioe.getMessage().startsWith(DISK_ERROR)) { 
40:	return (IOException)ioe.getCause(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
122:	throw new IOException("Bad HTTP response: " + responseCode); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: printStackTrace
204:	e.printStackTrace(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
47:	throw new SignatureException("IOException decoding parameters: " + e.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
67:	throw new DatabusException("OracleRelay instantiation error: " + ioe.getMessage(), ioe); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
315:	throw new IOException("Stream closed"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getClass
194:	IOException ioe = new IOException("Test_IOException"); 
-
209:	Assert.assertEquals(ioe.getClass(), throwable2.getCause().getCause().getClass()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
68:	throw new IOException(MessageFormat.format("Invalid UTF-8 first byte: {0}", firstByte)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: printStackTrace
137:	e.printStackTrace(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
77:	LOG.error("JSON IO error: " + e.getMessage(), e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
44:	throw new SecurityException("Could not obtain current user, " + ex.getMessage(), ex); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
54:	throw new IOException(MessageFormat.format("Unrecognized stty code: {0}", config)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
77:	* Note: Ensure that this is a SCNRegressMessage event before calling this method. 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
83:	throw new IOException( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
47:	return e instanceof IOException ? (IOException) e : new IOException(se); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: w, getMessage
50:	Log.w(TAG, e.getMessage(), e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
89:	throw new ERLuceneAdaptorException("Commit failed: " + e.getMessage(), e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
48:	throw new IOException(dfe.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: initCause
48:	IOException ioEx = new IOException( "Unable to establish loopback connection" ); 
49:	ioEx.initCause( connEx ); 
-
51:	new MojoExecutionException( "Error executing Jetty: Unable to establish loopback connection", ioEx ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
52:	throw new IOException("Attempt:" + context.getTaskAttemptID() + 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
52:	throw new IOException(e.toString()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
63:	throw new IOException("Non-successful HTTP response: " + status.getReasonPhrase()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
58:	throw new IOException("Negative value-length not allowed: " + 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
78:	throw new IOException("Serverside implements " + 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
90:	throw new IOException(ex.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
68:	throw new IOException("Found more than one meta files: " 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
66:	throw new IOException(MessageFormat.format("Illegal UTF-8 sequence: byte {0} of {1} byte sequence is not 10xxxxxx: {2}", 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
65:	throw new IOException("SAX error: " + e.getMessage()); 
Full Snippet Info
7
CodeRank
Related Java 8 IOException Questions & Answers:
Other Java 8 IOException Examples
52:	          try {
53:	            stream.close();
54:	          } catch (IOException e) {
55:	            e.printStackTrace();
56:	          }

Read More

20:	      try {
21:	        reader.close();
22:	      } catch (IOException e) {
23:	        e.printStackTrace();
24:	      }

Read More

40:	    try {
41:	      audiofile = File.createTempFile("sound", ".3gp", sampleDir);
42:	    } catch (IOException e) {
43:	      Log.e(TAG, "sdcard access error");
44:	      return;

Read More

26:				e.printStackTrace();
27:			} catch (IOException e) {
28:				e.printStackTrace();
29:			}
30:		}

Read More

15:					Log.e("Error: ", e.getMessage());
16:		            return null;
17:				} catch (IOException e) {
18:					Log.e("Error: ", e.getMessage());
19:					return null;

Read More

9:				@Override
10:				public void onIOException(IOException e, Object state) {
11:				}
12:	
13:				@Override

Read More