- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for connectWrapException (0.07 sec)
-
src/main/java/jcifs/smb/SmbTreeConnection.java
disconnect(true); try (SmbTreeHandle th = connectWrapException(loc)) {} } return loc; } private SmbResourceLocator resolveDfs0(final SmbResourceLocatorImpl loc, final RequestWithPath request) throws CIFSException { try (SmbTreeHandleImpl th = connectWrapException(loc); SmbSessionImpl session = th.getSession();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
CIFSException ex = assertThrows(CIFSException.class, () -> trace.connectWrapException(loc)); assertTrue(ex.getMessage() != null && ex.getMessage().contains("Failed to connect to server")); assertSame(thrown, ex.getCause()); } @Test @DisplayName("connectWrapException: rethrows SmbException unchanged") void connectWrapException_rethrowsSmbException() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
SmbException ex = assertThrows(SmbException.class, () -> c.hasCapability(1)); assertTrue(ex.getMessage().contains("Not connected")); } @Test @DisplayName("connectWrapException wraps UnknownHostException and IOException") void connectWrapException_wraps_io_and_unkhost() throws Exception { // Subclass to control connect() behavior
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
} } // Create new connection with optimized retry logic try { this.treeHandle = this.treeConnection.connectWrapException(this.fileLocator); // Optimization: Resolve DFS only if necessary if (this.fileLocator.getURL().getPath().contains("\\")) { this.treeHandle.ensureDFSResolved();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)