- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for seToIoe (0.04 seconds)
-
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) { ioe = (TransportException) root;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
/** * Converts an SmbException to an IOException * * @param se the SmbException to convert * @return an IOException wrapping the SmbException */ protected static IOException seToIoe(final SmbException se) { IOException ioe = se; Throwable root = se.getCause(); if (root instanceof TransportException) { ioe = (TransportException) root;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
fd.markClosed(); return 0; } return resp.getAvailable(); } catch (final SmbException se) { throw seToIoe(se); } } @Override public void close() { // ignore, the shared file descriptor is closed by the pipe handle }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
} @Test @DisplayName("seToIoe maps Interrupted cause to InterruptedIOException") void seToIoeInterruptedMapping() { SmbException se = new SmbException("x", new jcifs.util.transport.TransportException(new InterruptedException("boom"))); IOException ioe = SmbFileInputStream.seToIoe(se); assertTrue(ioe instanceof InterruptedIOException);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
} @Test @DisplayName("available() wraps SmbException to IOException") void available_wrapsException() throws Exception { // Verify exceptions from th.send are converted to IOException via seToIoe SmbPipeInputStream stream = newStreamWithMinimalStubs(true); when(handle.ensureOpen()).thenReturn(fd); when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0)