Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 683 for Cause (0.06 seconds)

  1. internal/s3select/unused-errors.go

    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errColumnTooLong(err error) *s3Error {
    	return &s3Error{
    		code:       "ColumnTooLong",
    		message:    "The length of a column in the result is greater than maxCharsPerColumn of 1 MB.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errOverMaxColumn(err error) *s3Error {
    	return &s3Error{
    Created: 2026-04-05 19:28
    - Last Modified: 2024-02-20 08:16
    - 17.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

       * non-nullable {@code cause}, as many users expect to find one.
       */
      public ExecutionError(@Nullable String message, @Nullable Error cause) {
        super(message, cause);
      }
    
      /**
       * Creates a new instance with {@code null} as its detail message and the given cause. Prefer to
       * provide a non-nullable {@code cause}, as many users expect to find one.
       */
    Created: 2026-04-03 12:43
    - Last Modified: 2025-02-13 17:34
    - 4K bytes
    - Click Count (0)
  3. 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: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 7.4K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/BuildFailure.java

            super(project, execTime, wallTime);
            this.cause = cause;
        }
    
        /**
         * Gets the cause of the build failure.
         *
         * @return The cause of the build failure or {@code null} if unknown.
         */
        public Throwable getCause() {
            return cause;
        }
    Created: 2026-04-05 03:35
    - Last Modified: 2024-12-12 11:02
    - 2.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            }
        }
    
        @Test
        @DisplayName("Cause-only constructor: preserves provided cause; no interactions with cause")
        void causeOnlyConstructor_preservesCause_andNoInteractions() {
            // Arrange & Act
            SMBProtocolDecodingException ex = new SMBProtocolDecodingException(mockCause);
    
            // Assert cause propagation
            assertSame(mockCause, ex.getCause(), "Cause should be exactly the provided instance");
    
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 5.1K bytes
    - Click Count (0)
  6. 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: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 2K bytes
    - Click Count (0)
  7. 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: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 5.4K 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: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 4.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

      /**
       * Creates a new instance with the given detail message and cause. Prefer to provide a
       * non-nullable {@code cause}, as many users expect to find one.
       */
      public UncheckedExecutionException(@Nullable String message, @Nullable Throwable cause) {
        super(message, cause);
      }
    
      /**
       * Creates a new instance with {@code null} as its detail message and the given cause. Prefer to
    Created: 2026-04-03 12:43
    - Last Modified: 2025-02-13 17:34
    - 4.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java

            // Test constructor with message and cause
            String message = "Query parsing failed";
            Exception cause = new IllegalArgumentException("Invalid query syntax");
    
            SearchQueryException exception = new SearchQueryException(message, cause);
    
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
    Created: 2026-03-31 13:07
    - Last Modified: 2026-03-13 23:01
    - 10K bytes
    - Click Count (0)
Back to Top