Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 426 for Throwables (0.15 sec)

  1. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

            DictionaryExpiredException exception = new DictionaryExpiredException();
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            try {
                throw new DictionaryExpiredException();
            } catch (DictionaryExpiredException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertEquals("java.lang.RuntimeException: Root cause error", exception.getMessage());
    
            // Test with null cause
            TransportException nullCauseException = new TransportException((Throwable) null);
            assertNull(nullCauseException.getCause());
        }
    
        @Test
        @DisplayName("Test constructor with message and cause creates exception with both")
        public void testConstructorWithMessageAndCause() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

            // When
            SpnegoException ex = new SpnegoException(cause);
    
            // Then
            assertNotNull(ex);
            assertEquals(cause, ex.getCause());
            // IOException(Throwable) sets message to cause.toString()
            assertEquals(cause.toString(), ex.getMessage());
        }
    
        @Test
        @DisplayName("Should create SpnegoException with message and cause")
        void testWithMessageAndCause() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbOperationException.java

                }
            }
            return "unknown";
        }
    
        private long extractNtStatus(Throwable cause) {
            if (cause instanceof SmbException) {
                return ((SmbException) cause).getNtStatus();
            }
            return 0;
        }
    
        private String extractServerMessage(Throwable cause) {
            if (cause instanceof SmbException) {
                // Try to get server message from SMB exception
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

        /**
         * Validate message+cause constructor and that no interaction with cause occurs during construction.
         */
        @Test
        @DisplayName("String+Throwable ctor: sets message, cause and unsuccessful status")
        void messageAndCauseConstructor_setsFields(@Mock Throwable mockCause) {
            // Arrange
            String msg = "auth failed";
    
            // Act
            SmbAuthException ex = new SmbAuthException(msg, mockCause);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

          Request
            .Builder()
            .url(server.url("/"))
            .post(sleepingRequestBody(500))
            .build()
        val latch = CountDownLatch(1)
        val exceptionRef = AtomicReference<Throwable>()
        val call = client.newCall(request)
        call.timeout().timeout(250, TimeUnit.MILLISECONDS)
        call.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exception/ScheduledJobException.java

        /**
         * Constructor.
         * @param message Exception message.
         * @param cause Root cause for this exception.
         */
        public ScheduledJobException(final String message, final Throwable cause) {
            super(message, cause);
        }
    
        /**
         * Constructor.
         * @param message Exception message.
         */
        public ScheduledJobException(final String message) {
            super(message);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.2K bytes
    - Viewed (1)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactDoesNotExistException.java

    public class ArtifactDoesNotExistException extends Exception {
        public ArtifactDoesNotExistException(final String message) {
            super(message);
        }
    
        public ArtifactDoesNotExistException(final String message, final Throwable cause) {
            super(message, cause);
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_otherThrowable() {
        Throwable cause = new Throwable();
        AtomicReference<Object> valueRef = new AtomicReference<>();
        LoadingCache<Object, Object> cache =
            new AbstractLoadingCache<Object, Object>() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/ChecksumHashFunction.java

        static boolean updateByteBuffer(Checksum cs, ByteBuffer bb) {
          if (UPDATE_BB != null) {
            try {
              UPDATE_BB.invokeExact(cs, bb);
            } catch (Throwable e) {
              // `update` has no `throws` clause.
              sneakyThrow(e);
            }
            return true;
          } else {
            return false;
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top