/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | CompletedFuture.java | 40 private final Throwable exc; field in class:CompletedFuture 42 private CompletedFuture(V result, Throwable exc) { argument 44 this.exc = exc; 51 static <V> CompletedFuture<V> withFailure(Throwable exc) { argument 53 if (!(exc instanceof IOException) && !(exc instanceof SecurityException)) 54 exc = new IOException(exc); 55 return new CompletedFuture<V>(null, exc); 58 withResult(V result, Throwable exc) argument [all...] |
H A D | PendingFuture.java | 48 private volatile Throwable exc; field in class:PendingFuture 155 exc = x; 182 if (exc != null) { 183 if (exc == CANCELLED) 185 throw new ExecutionException(exc); 199 if (exc != null) { 200 if (exc == CANCELLED) 202 throw new ExecutionException(exc); 208 return (exc != CANCELLED) ? exc [all...] |
H A D | SimpleAsynchronousFileChannelImpl.java | 187 Throwable exc = new ClosedChannelException(); 189 return CompletedFuture.withFailure(exc); 190 Invoker.invokeIndirectly(handler, attachment, null, exc, executor); 198 Throwable exc = null; 215 exc = x; 223 result.setResult(fli, exc); 225 Invoker.invokeUnchecked(handler, attachment, fli, exc); 302 Throwable exc = (isOpen()) ? null : new ClosedChannelException(); 304 return CompletedFuture.withResult(0, exc); 305 Invoker.invokeIndirectly(handler, attachment, 0, exc, executo [all...] |
H A D | Invoker.java | 123 Throwable exc) 125 if (exc == null) { 128 handler.failed(exc, attachment); 155 Throwable exc) 158 Invoker.invokeUnchecked(handler, attachment, result, exc); 170 Throwable exc) 186 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc); 189 invokeIndirectly(channel, handler, attachment, result, exc); 195 handler, attachment, result, exc); 210 final Throwable exc) 120 invokeUnchecked(CompletionHandler<V,? super A> handler, A attachment, V value, Throwable exc) argument 151 invokeDirect(GroupAndInvokeCount myGroupAndInvokeCount, CompletionHandler<V,? super A> handler, A attachment, V result, Throwable exc) argument 166 invoke(AsynchronousChannel channel, CompletionHandler<V,? super A> handler, A attachment, V result, Throwable exc) argument 206 invokeIndirectly(AsynchronousChannel channel, final CompletionHandler<V,? super A> handler, final A attachment, final V result, final Throwable exc) argument 230 invokeIndirectly(final CompletionHandler<V,? super A> handler, final A attachment, final V value, final Throwable exc, Executor executor) argument [all...] |
H A D | UnixAsynchronousSocketChannelImpl.java | 401 Throwable exc = null; 438 exc = x; 441 if (!(exc instanceof AsynchronousCloseException)) 451 Number result = (exc != null) ? null : (scattering) ? 456 future.setResult(result, exc); 459 Invoker.invokeUnchecked(handler, att, result, exc); 461 Invoker.invokeIndirectly(this, handler, att, result, exc); 485 Exception exc = new InterruptedByTimeoutException(); 487 future.setFailure(exc); 490 Invoker.invokeIndirectly(ch, handler, att, null, exc); [all...] |
H A D | UnixAsynchronousServerSocketChannelImpl.java | 166 Throwable exc = null; 183 exc = x; 190 if (exc == null) { 196 exc = x; 209 future.setResult(child, exc); 218 Invoker.invoke(this, handler, att, child, exc); 301 Throwable exc = null; 334 exc = x; 340 if (exc == null) { 345 exc [all...] |
/libcore/ojluni/src/main/java/java/nio/file/ |
H A D | SimpleFileVisitor.java | 87 public FileVisitResult visitFileFailed(T file, IOException exc) argument 91 throw exc; 104 public FileVisitResult postVisitDirectory(T dir, IOException exc) argument 108 if (exc != null) 109 throw exc;
|
H A D | FileVisitor.java | 145 * @param exc 153 FileVisitResult visitFileFailed(T file, IOException exc) argument 165 * @param exc 175 FileVisitResult postVisitDirectory(T dir, IOException exc) argument
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | CompletionHandler.java | 60 * @param exc 65 void failed(Throwable exc, A attachment); argument
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | AbstractSequentialList.java | 89 } catch (NoSuchElementException exc) { 119 } catch (NoSuchElementException exc) { 147 } catch (NoSuchElementException exc) { 175 } catch (NoSuchElementException exc) { 222 } catch (NoSuchElementException exc) {
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | FutureLikeCompletionHandler.java | 40 public void failed(Throwable exc, Object attachment) { argument 45 this.e = exc;
|
H A D | AsynchronousFileChannelTest.java | 255 public Throwable exc; field in class:AsynchronousFileChannelTest.RecordingHandler 268 public void failed(Throwable exc, String attachment) { argument 269 this.exc = exc; 671 public void failed(Throwable exc, String attachment) {
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | Cancellable.java | 133 Throwable exc = task.exception(); 134 if (exc != null) 135 throw new ExecutionException(exc);
|
H A D | UnixFileSystemProvider.java | 307 } catch (UnixException exc) { 308 exc.rethrowAsIOException(file);
|
/libcore/ojluni/src/test/java/nio/file/ |
H A D | TestUtil.java | 61 public FileVisitResult postVisitDirectory(Path dir, IOException exc) { 70 public FileVisitResult visitFileFailed(Path file, IOException exc) { 71 System.err.format("Unable to visit %s: %s\n", file, exc); 80 } catch (IOException exc) { 81 System.err.format("Unable to delete %s: %s\n", file, exc);
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | HttpURLConnection.java | 684 Exception exc = null; 688 exc = e; 697 if (exc != null) { 698 if (exc instanceof RuntimeException) 699 throw (RuntimeException)exc; 701 throw (IOException)exc;
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
H A D | Files2Test.java | 1864 public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { argument 1865 if (exc != null) { 1866 throw exc; 1872 public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { argument 1873 if (exc != null) { 1874 throw exc;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | FieldTest.java | 210 } catch (IllegalArgumentException exc) { 222 } catch (NullPointerException exc) { 234 } catch (Exception exc) {
|
/libcore/luni/src/test/java/libcore/util/ |
H A D | TimeZoneFinderTest.java | 89 public FileVisitResult postVisitDirectory(Path dir, IOException exc)
|