Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 149 for SmbException (0.06 sec)

  1. src/main/java/jcifs/smb/SmbCopyUtil.java

         * @param w
         * @param dh
         * @param sh
         * @param req
         * @param resp
         * @throws SmbException
         */
        static void copyFile(final SmbFile src, final SmbFile dest, final byte[][] b, final int bsize, final WriterThread w,
                final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException {
    
            if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) {
                try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx));
            SmbException original = new SmbException("original");
            doThrow(original).when(trace).connect(loc);
    
            // Act & Assert
            SmbException ex = assertThrows(SmbException.class, () -> trace.connectWrapException(loc));
            assertSame(original, ex);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                    @Override
                    public boolean accept(SmbFile file) throws SmbException {
                        if (file == null) {
                            throw new SmbException("null file");
                        }
                        return true;
                    }
                };
                assertThrows(SmbException.class, () -\u003e throwOnNull.accept(null));
            }
        }
    
        @Nested
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            // Simulate network name deleted error
            SmbException networkDeletedError = new SmbException(SmbException.NT_STATUS_NETWORK_NAME_DELETED, false);
            doThrow(networkDeletedError).when(session).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    
            // Execute and verify exception is thrown
            assertThrows(SmbException.class, () -> tree.send(request, response));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTree.java

                            break;
                        default:
                            throw new SmbException("Invalid operation for " + service + " service");
                        }
                        break;
                    default:
                        throw new SmbException("Invalid operation for " + service + " service" + request);
                    }
                }
                request.tid = tid;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbSessionImpl.java

         * Establish a tree connection with the configured logon share
         *
         * @throws SmbException
         */
        @Override
        public void treeConnectLogon() throws SmbException {
            String logonShare = getContext().getConfig().getLogonShare();
            if (logonShare == null || logonShare.isEmpty()) {
                throw new SmbException("Logon share is not defined");
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
        @Override
        public boolean hasCapability(final int cap) throws SmbException {
            return getNegotiateResponse().haveCapabilitiy(cap);
        }
    
        /**
         * @return the negotiated
         * @throws SmbException
         */
        SmbNegotiationResponse getNegotiateResponse() throws SmbException {
            try {
                if (this.negotiated == null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

         *
         * @param url An smb URL string representing the file to write to
         * @throws SmbException if an SMB error occurs
         * @throws MalformedURLException if the URL is not properly formatted
         * @throws UnknownHostException if the host cannot be resolved
         */
    
        public SmbFileOutputStream(final String url) throws SmbException, MalformedURLException, UnknownHostException {
            this(url, false);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileHandleImpl.java

        /**
         * @return the fid
         * @throws SmbException
         */
        public int getFid() throws SmbException {
            if (!isValid()) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fid;
        }
    
        public byte[] getFileId() throws SmbException {
            if (!isValid()) {
                throw new SmbException("Descriptor is no longer valid");
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  10. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

        /**
         * Exception flow: filter throws SmbException and it propagates to caller.
         */
        @Test
        @DisplayName("throws SmbException as declared by contract")
        void throwsSmbExceptionFromFilter() {
            SmbFilenameFilter filter = (dir, name) -> {
                throw new SmbException("boom");
            };
    
            SmbException ex = assertThrows(SmbException.class, () -> filter.accept(mockDir, "x"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top