Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for addSuppressed (0.05 sec)

  1. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            assertNull(exception.getCause());
    
            // Test that suppression is enabled
            RuntimeException suppressed = new RuntimeException("Suppressed exception");
            exception.addSuppressed(suppressed);
            assertEquals(1, exception.getSuppressed().length);
            assertEquals(suppressed, exception.getSuppressed()[0]);
        }
    
        public void test_constructor_withSuppressionDisabled() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            Exception suppressed1 = new IllegalArgumentException("Suppressed 1");
            Exception suppressed2 = new IOException("Suppressed 2");
            mainException.addSuppressed(suppressed1);
            mainException.addSuppressed(suppressed2);
    
            Throwable[] suppressedExceptions = mainException.getSuppressed();
            assertEquals(2, suppressedExceptions.length);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

            )
          }
          return response
        } catch (e: IOException) {
          if (sendRequestException != null) {
            sendRequestException.addSuppressed(e)
            throw sendRequestException
          }
          throw e
        }
      }
    
      private fun shouldIgnoreAndWaitForRealResponse(code: Int): Boolean =
        when {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                    try {
                        th.send(new Smb2CloseRequest(th.getConfig(), cr.getFileId()));
                    } catch (final SmbException e2) {
                        e.addSuppressed(e2);
                    }
                }
    
                final Smb2QueryDirectoryResponse qr = query.getResponse();
    
                if (qr != null && qr.isReceived() && qr.getStatus() == NtStatus.NT_STATUS_NO_SUCH_FILE) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

            ResultOffsetExceededException suppressedException = new ResultOffsetExceededException("Suppressed exception");
    
            mainException.addSuppressed(suppressedException);
    
            Throwable[] suppressed = mainException.getSuppressed();
            assertNotNull(suppressed);
            assertEquals(1, suppressed.length);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            RuntimeCIFSException mainException = new RuntimeCIFSException("Main error");
            RuntimeException suppressedException = new RuntimeException("Suppressed error");
    
            // When
            mainException.addSuppressed(suppressedException);
    
            // Then
            Throwable[] suppressed = mainException.getSuppressed();
            assertEquals(1, suppressed.length);
            assertEquals(suppressedException, suppressed[0]);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

            ContentNotFoundException exception = new ContentNotFoundException(parentUrl, url);
    
            // Verify that suppression is disabled
            try {
                exception.addSuppressed(new Exception("Test suppressed"));
                // If suppression is disabled, getSuppressed should return empty array
                assertEquals(0, exception.getSuppressed().length);
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/transport/Transport.java

            } catch (final IOException ioe) {
                log.warn("sendrecv failed", ioe);
                try {
                    disconnect(true);
                } catch (final IOException ioe2) {
                    ioe.addSuppressed(ioe2);
                    log.info("disconnect failed", ioe2);
                }
                throw ioe;
            } catch (final InterruptedException ie) {
                throw new TransportException(ie);
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeImpl.java

                try {
                    transport.disconnect(true);
                } catch (final IOException e) {
                    log.warn("Failed to disconnect transport", e);
                    se.addSuppressed(e);
                }
                throw se;
            }
        }
    
        /**
         * @param trans
         * @param sess
         * @throws CIFSException
         *
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Streams.java

          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
          }
        }
        if (exception != null) {
          // Normally this is a RuntimeException that doesn't need sneakyThrow.
          // But theoretically we could see sneaky checked exception
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 37K bytes
    - Viewed (0)
Back to top