Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 901 - 910 of 1,422 for Because (0.07 seconds)

  1. lib/fips140/v1.1.0-rc1.zip

    private key") } p, err := c.newPoint().ScalarBaseMult(key) if err != nil { // This is unreachable because the only error condition of // ScalarBaseMult is if the input is not the right size. panic("crypto/ecdh: internal error: nistec ScalarBaseMult failed for a fixed-size input") } publicKey := p.Bytes() if len(publicKey) == 1 { // The encoding of the identity is a single 0x00 byte. This is // unreachable because the only scalar that generates the identity is // zero, which is rejected above. panic("crypto/ecdh:...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Dec 11 16:27:41 GMT 2025
    - 663K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            });
    
            // Test throwing and catching with cause
            RuntimeException cause = new RuntimeException("Cause");
            TransportException thrown = assertThrows(TransportException.class, () -> {
                throw new TransportException(cause);
            });
            assertEquals(cause, thrown.getCause());
    
            // Test throwing and catching with message and cause
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

            // IOException(Throwable) sets message to cause.toString()
            assertEquals(cause.toString(), ex.getMessage());
        }
    
        @Test
        @DisplayName("Should create SpnegoException with message and cause")
        void testWithMessageAndCause() {
            // Given
            String message = "SPNEGO handshake error";
            RuntimeException cause = new RuntimeException("root cause");
    
            // When
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbFile.java

                    haveAttributes = false;
    
                    // This seems to be the only way to obtain a reliable (with respect to locking) file size here
                    // It is more critical than other attributes because append mode depends on it.
                    // We do only really care if we open for writing and not shared for writing
                    // otherwise there are no guarantees anyway, but this stuff is legacy anyways.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            assertNull(topLevel.getCause().getCause().getCause().getCause());
    
            // Verify messages
            assertEquals("Top level", topLevel.getMessage());
            assertEquals("Level 1", level1.getMessage());
            assertEquals("Level 2", level2.getMessage());
            assertEquals("Level 3 - Root cause", level3.getMessage());
        }
    
        /**
         * Test serialization
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 20K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/curl/CurlExceptionTest.java

            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        @Test
        public void testConstructorWithNullMessageAndCause() {
            IOException cause = new IOException("IO error");
            CurlException exception = new CurlException(null, cause);
    
            assertNull(exception.getMessage());
            assertSame(cause, exception.getCause());
        }
    
        @Test
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Jul 31 01:01:12 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

            // Expect the message to be set correctly and cause to be null
            assertEquals(errorMessage, e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a cause.
         */
        @Test
        void testCauseConstructor() {
            Throwable cause = new RuntimeException("Root cause");
            PACDecodingException e = new PACDecodingException(cause);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

            // Then
            assertSame(cause, exception.getCause(), "Crypto cause should be preserved");
            assertEquals(cause.toString(), exception.getMessage(), "Message should be cause.toString() when only cause is provided");
        }
    
        @Test
        @DisplayName("Message and cause constructor should preserve both crypto parameters")
        void testMessageAndCauseConstructor() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            // Arrange - use a real cause so message is derived from cause.toString()
            Throwable cause = new IllegalStateException("proto mismatch");
            String expectedMessage = cause.toString();
    
            // Act
            SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(cause);
    
            // Assert - cause preserved, message derived from cause
            assertSame(cause, ex.getCause());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  10. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

        @Test
        @DisplayName("Should provide correct cause for constructor with cause only")
        void testCauseOnlyConstructorMessage() {
            // Given
            RuntimeException cause = new RuntimeException("Specific cause message");
    
            // When
            RuntimeCIFSException exception = new RuntimeCIFSException(cause);
    
            // Then
            assertEquals(cause, exception.getCause());
            assertNotNull(exception.getMessage());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top