- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 150 for SmbException (0.24 sec)
-
src/main/java/jcifs/util/PathValidator.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
void hasCapability_throws() throws SmbException { doThrow(new SmbException("capability check failed")).when(transport).hasCapability(eq(42)); SmbException ex = assertThrows(SmbException.class, () -> transport.hasCapability(42)); assertTrue(ex.getMessage().contains("failed")); verify(transport).hasCapability(42); } // Edge: disconnected status toggles
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
} @Test void testListFilesOnNonDirectory() throws SmbException { // Arrange doReturn(false).when(smbFile).isDirectory(); doThrow(new SmbException("Not a directory")).when(smbFile).listFiles(); // Act & Assert assertThrows(SmbException.class, () -> smbFile.listFiles()); } } @NestedRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
void treeConnectLogon_happy() throws SmbException { // doNothing by default session.treeConnectLogon(); verify(session, times(1)).treeConnectLogon(); } // Error propagation: connect to logon share throws SmbException @Test @DisplayName("treeConnectLogon throws SmbException when underlying call fails") void treeConnectLogon_throws() throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
} }; SmbException ex2 = assertThrows(SmbException.class, () -> c2.connectWrapException(loc)); assertTrue(ex2.getMessage().contains("Failed to connect to server")); SmbTreeConnection c3 = new SmbTreeConnection(ctx) { @Override public SmbTreeHandleImpl connect(SmbResourceLocatorImpl loc) throws SmbException { throw new SmbException("boom");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/smb1/smb1/SmbFile.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
FileEntry[] entries; if (u.getPath().lastIndexOf('/') != u.getPath().length() - 1) { throw new SmbException(u.toString() + " directory must end with '/'"); } if (locator.getType() != SmbConstants.TYPE_SERVER) { throw new SmbException("The requested list operations is invalid: " + u.toString()); } final Set<FileEntry> set = new HashSet<>();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
} /** * Converts an SmbException to an IOException. * * @param se the SmbException to convert * @return the resulting IOException */ protected IOException seToIoe(final SmbException se) { IOException ioe = se; Throwable root = se.getRootCause(); if (root instanceof TransportException) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0)