- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 148 for SmbException (0.08 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
SmbFile dir = Mockito.mock(SmbFile.class); SmbFilenameFilter filter = (d, n) -> { throw new SmbException("forced exception"); }; Exception e = assertThrows(Exception.class, () -> filter.accept(dir, "any")); assertTrue(e instanceof SmbException); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/NetServerEnumIterator.java
checkStatus(); final FileEntry n = advance(); if (n == null) { doClose(); } return n; } /** * @throws SmbException */ private void checkStatus() throws SmbException { final int status = this.response.getStatus(); if (status == WinError.ERROR_SERVICE_NOT_INSTALLED) { throw new SmbUnsupportedOperationException(); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java
createResp = th.send(create); } catch (final SmbException e) { final Smb2CreateResponse cr = create.getResponse(); if (cr != null && cr.isReceived() && cr.getStatus() == NtStatus.NT_STATUS_SUCCESS) { try { th.send(new Smb2CloseRequest(th.getConfig(), cr.getFileId())); } catch (final SmbException e2) { e.addSuppressed(e2); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
}).when(mockHandle).sendrecv(closeCaptor.capture()); SamrPolicyHandle handle = new SamrPolicyHandle(mockHandle, server, access); SmbException thrown = assertThrows(SmbException.class, handle::close); // SmbException constructor maps non-NT status codes to NT_STATUS_UNSUCCESSFUL assertEquals(0xC0000001, thrown.getNtStatus()); // NT_STATUS_UNSUCCESSFUL
Created: 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/main/java/jcifs/smb/SmbTreeInternal.java
/** * Connects and performs logon to the tree using the specified context * @param tf the CIFS context to use for connection * @throws SmbException if an SMB error occurs during connection */ @Deprecated void connectLogon(CIFSContext tf) throws SmbException; /** * Sends an SMB request and returns the response * @param <T> the response type * @param request the request to sendCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbFilenameFilter.java
* @param name the name of the file * @return true if the file should be included, false otherwise * @throws SmbException if an SMB error occurs during evaluation */ boolean accept(SmbFile dir, String name) throws SmbException;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
rpc.retval = errorCode; // Simulate RPC error return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class)); // Act & Assert SmbException thrown = assertThrows(SmbException.class, () -> { new LsaPolicyHandle(mockDcerpcHandle, server, access); }); // In smb1, non-NTSTATUS error codes get mapped to NT_STATUS_UNSUCCESSFUL (0xC0000001)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbFileFilter.java
* * @param file the SMB file to test for inclusion * @return true if the file should be included, false otherwise * @throws SmbException if an error occurs while accessing the file */ boolean accept(SmbFile file) throws SmbException;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java
* @return decoded data * @throws SmbException if decoding fails or the response type is incompatible */ @SuppressWarnings("unchecked") public <T extends Decodable> T getOutputData(final Class<T> responseType) throws SmbException { final Decodable out = getOutputData(); if (out == null) { throw new SmbException("Failed to decode output data"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java
assertNull(ex.getCause(), "Cause should be null by default"); assertNull(ex.getRootCause(), "Root cause should be null by default"); assertTrue(ex instanceof SmbException, "Should be an SmbException subtype"); } /** * Ensures the exception is thrown and captured via assertThrows with the right message. */ @Test void assertThrowsCapturesExceptionAndMessage() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0)