Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 150 for SmbException (0.24 sec)

  1. src/main/java/jcifs/util/PathValidator.java

         * @throws SmbException if path is invalid or dangerous
         */
        public String validatePath(String path) throws SmbException {
            if (path == null || path.isEmpty()) {
                throw new SmbException("Path cannot be null or empty");
            }
    
            // Check length
            if (path.length() > maxPathLength) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. 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)
  3. 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());
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeImpl.java

         * @param transport
         * @return
         * @throws SmbException
         */
        private int waitForState(final SmbTransportImpl transport) throws SmbException {
            int cs;
            while ((cs = this.connectionState.get()) != 0) {
                if (cs == 2) {
                    return cs;
                }
                if (cs == 3) {
                    throw new SmbException("Disconnecting during tree connect");
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

         *
         * @throws SmbException if an error occurs while deleting the file or directory
         */
        public void delete() throws SmbException {
            exists();
            getUncPath0();
            delete(unc);
        }
    
        void delete(final String fileName) throws SmbException {
            if (getUncPath0().length() == 1) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

            }
            return this.handle.acquire();
        }
    
        /**
         * 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
Back to top