- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,571 for cause (0.05 sec)
-
src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java
Throwable cause1 = exception.getCause(); assertNotNull(cause1); assertTrue(cause1 instanceof IOException); assertEquals("Level 1 error", cause1.getMessage()); Throwable cause2 = cause1.getCause(); assertNotNull(cause2); assertTrue(cause2 instanceof IllegalStateException); assertEquals("Level 2 error", cause2.getMessage());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java
// Test constructor with null message but valid cause Exception cause = new IllegalArgumentException("Invalid argument"); DictionaryException exception = new DictionaryException(null, cause); assertNotNull(exception); assertNull(exception.getMessage()); assertNotNull(exception.getCause()); assertEquals(cause, exception.getCause()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.4K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/cache/MavenExecutionException.java
* This exception wraps the original cause of the execution failure. * * @since 4.0.0 */ @Experimental public class MavenExecutionException extends MavenException { /** * Constructs a new MavenExecutionException with the specified cause. * * @param cause The underlying exception that caused the execution failure */
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java
// Test constructor with message and cause String message = "Storage operation failed"; Exception cause = new RuntimeException("Underlying error"); StorageException exception = new StorageException(message, cause); assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.2K bytes - Viewed (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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (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>
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
void testWithCause() { // Given IllegalArgumentException cause = new IllegalArgumentException("bad arg"); // When SpnegoException ex = new SpnegoException(cause); // Then assertNotNull(ex); assertEquals(cause, ex.getCause()); // IOException(Throwable) sets message to cause.toString()
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0)