- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 161 for getCause (0.05 sec)
-
src/test/java/jcifs/CIFSExceptionTest.java
CIFSException exception = new CIFSException(message, cause); // Then assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); } @Test @DisplayName("Should create CIFSException with cause only") void testCIFSExceptionWithCauseOnly() { // Given Exception cause = new RuntimeException("Root cause");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause()); assertEquals("boom", thrown.getCause().getMessage()); verify(supplier, times(1)).get(); verifyNoMoreInteractions(supplier); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java
&& exc.getCause() instanceof PluginResolutionException && exc.getCause().getCause() instanceof ArtifactResolutionException && exc.getCause().getCause().getCause() instanceof ArtifactNotFoundException;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 9.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java
String fullMessage = (message != null) ? message : ""; // To break out of possible endless loop when getCause returns "this", or dejaVu for n-level recursion (n>1) Set<Throwable> dejaVu = Collections.newSetFromMap(new IdentityHashMap<>()); for (Throwable t = exception; t != null && t != t.getCause(); t = t.getCause()) { String exceptionMessage = t.getMessage(); String longMessage = null;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
SMBProtocolDecodingException ex = new SMBProtocolDecodingException(); // Assert state assertNull(ex.getMessage(), "Default constructor should have null message"); assertNull(ex.getCause(), "Default constructor should have null cause"); assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype"); // Assert throwing/catching behavior with assertThrows
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping"); assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code"); assertNull(ex.getCause(), "cause must be null for int constructor"); assertNull(ex.getRootCause(), "rootCause must be null for int constructor"); } /** * Validate message-only constructor with both null and empty messages.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenParser.java
try { return parseArgs(Options.SOURCE_CLI, args); } catch (ParseException e) { throw new IllegalArgumentException("Failed to parse CLI arguments: " + e.getMessage(), e.getCause()); } } protected MavenOptions parseMavenAtFileOptions(Path atFile) { try (Stream<String> lines = Files.lines(atFile, StandardCharsets.UTF_8)) { List<String> args =Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Oct 14 12:35:44 UTC 2025 - 4.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java
for (Exception exception : result.getCollectionErrors()) { msg.append(exception.getMessage()).append(System.lineSeparator()); if (exception.getCause() != null) { msg.append("\tCaused by: ") .append(exception.getCause().getMessage()) .append(System.lineSeparator()); } } return msg.toString(); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 10:13:56 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
assertEquals(message, exception.getMessage(), "Message should match the input."); assertEquals(cause, exception.getCause(), "Cause should match the input."); assertEquals(cause, exception.getRootCause(), "getRootCause() should return the same cause as getCause()."); } /** * Test getErrorCode() method. */ @Test void testGetErrorCode() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
assertTrue(e.getCause() instanceof CurlException); CurlException innerException = (CurlException) e.getCause(); assertTrue(innerException.getMessage().contains("The content does not exist")); assertSame(exception, innerException.getCause()); } } @Test
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 12.5K bytes - Viewed (0)