Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 496 for Throwables (0.08 seconds)

  1. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java

    abstract class InterruptibleTask<T extends @Nullable Object> implements Runnable {
    
      @Override
      public void run() {
        T result = null;
        Throwable error = null;
        if (isDone()) {
          return;
        }
        try {
          result = runInterruptibly();
        } catch (Throwable t) {
          error = t;
        }
        if (error == null) {
          // The cast is safe because of the `run` and `error` checks.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataRetrievalException.java

            this(message, null, null);
        }
    
        public MetadataRetrievalException(Throwable cause) {
            this(null, cause, null);
        }
    
        public MetadataRetrievalException(String message, Throwable cause) {
            this(message, cause, null);
        }
    
        public MetadataRetrievalException(String message, Throwable cause, ArtifactMetadata artifact) {
            super(message, cause);
    
            this.artifact = artifact;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jStdoutLogger.java

        //
        @Override
        public void error(String msg) {
            out.print(ERROR);
            out.println(msg);
        }
    
        @Override
        public void error(String msg, Throwable t) {
            error(msg);
    
            if (null != t) {
                t.printStackTrace(out);
            }
        }
    
        //
        // Don't need any of this
        //
        @Override
        public String getName() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/SettableFuture.java

      @Override
      public boolean set(@ParametricNullness V value) {
        return super.set(value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean setException(Throwable throwable) {
        return super.setException(throwable);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean setFuture(ListenableFuture<? extends V> future) {
        return super.setFuture(future);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  5. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AggregateFutureState.java

      // & this future completes. Released when the future releases the reference to the running state
      private @Nullable Set<Throwable> seenExceptions = null;
      private int remaining;
    
      AggregateFutureState(int remainingFutures) {
        this.remaining = remainingFutures;
      }
    
      final Set<Throwable> getOrInitSeenExceptions() {
        if (seenExceptions == null) {
          seenExceptions = newHashSet();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexResponseTest.java

            assertFalse(response1.hasError());
    
            List<Throwable> errors = new ArrayList<>();
            errors.add(new Exception("Test error"));
            SuggestIndexResponse response2 = new SuggestIndexResponse(10, 5, errors, 100);
            assertTrue(response2.hasError());
        }
    
        @Test
        public void test_getErrors() throws Exception {
            List<Throwable> errors = new ArrayList<>();
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Thu Nov 13 00:40:54 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

            return weakSetValidator();
          }
        }
      }
    
      // TODO(cpovirk): change parameter order to match other helper methods (Class, Throwable)?
      private static <X extends Exception> void wrapAndThrowExceptionOrError(
          Throwable cause, Class<X> exceptionClass) throws X {
        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/dcerpc/DcerpcException.java

            return error;
        }
    
        /**
         * Returns the root cause of this exception
         *
         * @return the root cause throwable
         */
        public Throwable getRootCause() {
            return rootCause;
        }
    
        @Override
        public String toString() {
            if (rootCause != null) {
                final StringWriter sw = new StringWriter();
                final PrintWriter pw = new PrintWriter(sw);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

        }
    
        /**
         * Verify that root causes are stored and returned correctly.
         */
        @Test
        @DisplayName("Root cause propagation")
        void testRootCausePropagation() {
            Throwable root = mock(Throwable.class);
            SmbException ex = new SmbException(0, root);
            assertSame(root, ex.getRootCause());
        }
    
        /**
         * Verify that the string-ctor sets status to {@code NT_STATUS_UNSUCCESSFUL}.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RoutePlanner.kt

       */
      data class ConnectResult(
        val plan: Plan,
        val nextPlan: Plan? = null,
        val throwable: Throwable? = null,
      ) {
        val isSuccess: Boolean
          get() = nextPlan == null && throwable == null
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:58:02 GMT 2025
    - 4.2K bytes
    - Click Count (0)
Back to Top