Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for seToIoe (0.03 sec)

  1. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  3. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top