/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | CompletedFuture.java | 40 private final Throwable exc; field in CompletedFuture 42 private CompletedFuture(V result, Throwable exc) { in CompletedFuture() argument 44 this.exc = exc; in CompletedFuture() 51 static <V> CompletedFuture<V> withFailure(Throwable exc) { in withFailure() argument 53 if (!(exc instanceof IOException) && !(exc instanceof SecurityException)) in withFailure() 54 exc = new IOException(exc); in withFailure() 55 return new CompletedFuture<V>(null, exc); in withFailure() 58 static <V> CompletedFuture<V> withResult(V result, Throwable exc) { in withResult() argument 59 if (exc == null) { in withResult() 62 return withFailure(exc); in withResult() [all …]
|
D | SimpleAsynchronousFileChannelImpl.java | 187 Throwable exc = new ClosedChannelException(); in implLock() local 189 return CompletedFuture.withFailure(exc); in implLock() 190 Invoker.invokeIndirectly(handler, attachment, null, exc, executor); in implLock() 198 Throwable exc = null; in implLock() 215 exc = x; in implLock() 223 result.setResult(fli, exc); in implLock() 225 Invoker.invokeUnchecked(handler, attachment, fli, exc); in implLock() 302 Throwable exc = (isOpen()) ? null : new ClosedChannelException(); in implRead() local 304 return CompletedFuture.withResult(0, exc); in implRead() 305 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); in implRead() [all …]
|
D | PendingFuture.java | 48 private volatile Throwable exc; field in PendingFuture 155 exc = x; in setFailure() 182 if (exc != null) { in get() 183 if (exc == CANCELLED) in get() 185 throw new ExecutionException(exc); in get() 199 if (exc != null) { in get() 200 if (exc == CANCELLED) in get() 202 throw new ExecutionException(exc); in get() 208 return (exc != CANCELLED) ? exc : null; in exception() 217 return (exc == CANCELLED); in isCancelled() [all …]
|
D | UnixAsynchronousSocketChannelImpl.java | 396 Throwable exc = null; in finishRead() local 433 exc = x; in finishRead() 436 if (!(exc instanceof AsynchronousCloseException)) in finishRead() 446 Number result = (exc != null) ? null : (scattering) ? in finishRead() 451 future.setResult(result, exc); in finishRead() 454 Invoker.invokeUnchecked(handler, att, result, exc); in finishRead() 456 Invoker.invokeIndirectly(this, handler, att, result, exc); in finishRead() 480 Exception exc = new InterruptedByTimeoutException(); 482 future.setFailure(exc); 485 Invoker.invokeIndirectly(ch, handler, att, null, exc); [all …]
|
D | Invoker.java | 123 Throwable exc) in invokeUnchecked() argument 125 if (exc == null) { in invokeUnchecked() 128 handler.failed(exc, attachment); in invokeUnchecked() 157 Throwable exc) in invokeDirect() argument 160 Invoker.invokeUnchecked(handler, attachment, result, exc); in invokeDirect() 172 Throwable exc) in invoke() argument 188 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc); in invoke() 191 invokeIndirectly(channel, handler, attachment, result, exc); in invoke() 197 handler, attachment, result, exc); in invoke() 212 final Throwable exc) in invokeIndirectly() argument [all …]
|
D | UnixAsynchronousServerSocketChannelImpl.java | 164 Throwable exc = null; in onEvent() local 181 exc = x; in onEvent() 188 if (exc == null) { in onEvent() 194 exc = x; in onEvent() 207 future.setResult(child, exc); in onEvent() 216 Invoker.invoke(this, handler, att, child, exc); in onEvent() 299 Throwable exc = null; in implAccept() local 332 exc = x; in implAccept() 338 if (exc == null) { in implAccept() 343 exc = x; in implAccept() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | SimpleFileVisitor.java | 87 public FileVisitResult visitFileFailed(T file, IOException exc) in visitFileFailed() argument 91 throw exc; in visitFileFailed() 104 public FileVisitResult postVisitDirectory(T dir, IOException exc) in postVisitDirectory() argument 108 if (exc != null) in postVisitDirectory() 109 throw exc; in postVisitDirectory()
|
D | FileVisitor.java | 153 FileVisitResult visitFileFailed(T file, IOException exc) in visitFileFailed() argument 175 FileVisitResult postVisitDirectory(T dir, IOException exc) in postVisitDirectory() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | AbstractSequentialList.java | 89 } catch (NoSuchElementException exc) { in get() 119 } catch (NoSuchElementException exc) { in set() 147 } catch (NoSuchElementException exc) { in add() 175 } catch (NoSuchElementException exc) { in remove() 222 } catch (NoSuchElementException exc) { in addAll()
|
/libcore/ojluni/src/test/java/nio/file/ |
D | TestUtil.java | 61 public FileVisitResult postVisitDirectory(Path dir, IOException exc) { in removeAll() 70 public FileVisitResult visitFileFailed(Path file, IOException exc) { in removeAll() 71 System.err.format("Unable to visit %s: %s\n", file, exc); in removeAll() 80 } catch (IOException exc) { in deleteUnchecked() 81 System.err.format("Unable to delete %s: %s\n", file, exc); in deleteUnchecked()
|
/libcore/ojluni/src/main/java/java/net/ |
D | HttpURLConnection.java | 684 Exception exc = null; in getResponseCode() local 688 exc = e; in getResponseCode() 697 if (exc != null) { in getResponseCode() 698 if (exc instanceof RuntimeException) in getResponseCode() 699 throw (RuntimeException)exc; in getResponseCode() 701 throw (IOException)exc; in getResponseCode()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | Cancellable.java | 133 Throwable exc = task.exception(); in runInterruptibly() local 134 if (exc != null) in runInterruptibly() 135 throw new ExecutionException(exc); in runInterruptibly()
|
D | UnixFileSystemProvider.java | 307 } catch (UnixException exc) { in checkAccess() 308 exc.rethrowAsIOException(file); in checkAccess()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FutureLikeCompletionHandler.java | 40 public void failed(Throwable exc, Object attachment) { in failed() argument 45 this.e = exc; in failed()
|
D | AsynchronousFileChannelTest.java | 255 public Throwable exc; field in AsynchronousFileChannelTest.RecordingHandler 268 public void failed(Throwable exc, String attachment) { in failed() argument 269 this.exc = exc; in failed() 671 public void failed(Throwable exc, String attachment) { in testCustomExecutor()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | CompletionHandler.java | 65 void failed(Throwable exc, A attachment); in failed() argument
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | Files2Test.java | 1864 public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { in visitFileFailed() argument 1865 if (exc != null) { in visitFileFailed() 1866 throw exc; in visitFileFailed() 1872 public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { in postVisitDirectory() argument 1873 if (exc != null) { in postVisitDirectory() 1874 throw exc; in postVisitDirectory()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | FieldTest.java | 210 } catch (IllegalArgumentException exc) { in test_getLjava_lang_Object() 222 } catch (NullPointerException exc) { in test_getLjava_lang_Object() 234 } catch (Exception exc) { in test_getLjava_lang_Object()
|