- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 436 for Cause (0.03 seconds)
-
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 causeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
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: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
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: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2K bytes - Click Count (0) -
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: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
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: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0) -
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: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java
// Test constructor with message and cause String message = "Test error message"; Throwable cause = new RuntimeException("Underlying cause"); SearchEngineClientException exception = new SearchEngineClientException(message, cause); assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/exception/SuggestIndexException.java
/** * Constructs a new SuggestIndexException with the specified cause. * @param cause The cause. */ public SuggestIndexException(final Throwable cause) { super(cause); } /** * Constructs a new SuggestIndexException with the specified detail message and cause. * @param msg The detail message. * @param cause The cause. */Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Fri Jul 04 14:00:23 GMT 2025 - 2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/exception/SQLRuntimeException.java
* * @param cause the underlying exception */ public SQLRuntimeException(final SQLException cause) { super("ECL0072", asArray(getSql(cause), getRealMessage(cause), Integer.toString(cause.getErrorCode()), cause.getSQLState()), cause); } /** * Returns the <code>SQL</code>. * * @param cause the underlying exception * @return the <code>SQL</code>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 2.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/exception/ClSQLException.java
* Message code * @param args * Array of arguments * @param cause * The cause of the exception */ public ClSQLException(final String messageCode, final Object[] args, final Throwable cause) { this(messageCode, args, null, 0, cause, null); } /** * Creates a {@link ClSQLException}. * * @param messageCodeCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Jul 05 00:11:05 GMT 2025 - 5.4K bytes - Click Count (0)