Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getNtStatus (0.05 sec)

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

            } catch (final SmbException e) {
                if (this.response != null && this.response.isReceived() && e.getNtStatus() == NtStatus.NT_STATUS_NO_SUCH_FILE) {
                    doClose();
                    return null;
                }
                throw e;
            }
    
            this.response.setSubCommand(SmbComTransaction.TRANS2_FIND_NEXT2);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

            SmbException thrown = assertThrows(SmbException.class, () -> {
                new SamrAliasHandle(mockDcerpcHandle, mockSamrDomainHandle, access, rid);
            });
    
            assertEquals(errorCode, thrown.getNtStatus());
        }
    
        @Test
        void close_shouldCloseAliasSuccessfully() throws IOException {
            // Arrange
            int access = 1;
            int rid = 100;
    
            // Mock constructor success
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            SmbException thrown = assertThrows(SmbException.class, () -> {
                new SamrDomainHandle(mockDcerpcHandle, mockPolicyHandle, access, mockSid);
            });
            assertEquals(errorCode, thrown.getNtStatus());
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcSamrOpenDomain.class));
        }
    
        @Test
        void constructor_shouldThrowIOExceptionOnSendRecvFailure() throws IOException {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
            // The error code gets mapped to NT_STATUS_UNSUCCESSFUL because it's not a valid NT status code
            assertEquals(0xC0000001, thrown.getNtStatus()); // NT_STATUS_UNSUCCESSFUL
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
        }
    
        @Test
        void constructor_shouldThrowIOExceptionOnSendRecvFailure() throws IOException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTree.java

                }
                try {
                    session.send(request, response);
                } catch (final SmbException se) {
                    if (se.getNtStatus() == NtStatus.NT_STATUS_NETWORK_NAME_DELETED) {
                        /* Someone removed the share while we were
                         * connected. Bastards! Disconnect this tree
    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/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            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
            verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrCloseHandle.class));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                }
                try {
                    resp = th.send(req, resp, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY);
                } catch (final SmbException e) {
                    if (e.getNtStatus() == 0xC0000120) {
                        // cancelled
                        log.debug("Request was cancelled", e);
                        return null;
                    }
                    throw e;
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbException.java

            status = winerr ? errcode : getStatusByCode(errcode);
        }
    
        /**
         * Returns the NT status code for this exception.
         *
         * @return the NT status code
         */
        public int getNtStatus() {
            return status;
        }
    
        /**
         * Returns the root cause of this exception if one exists
         *
         * @return the root cause throwable, or null if none exists
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbException.java

            this.status = winerr ? errcode : getStatusByCode(errcode);
        }
    
        /**
         * Get the NT STATUS code associated with this exception
         *
         * @return status code
         */
        public int getNtStatus() {
            return this.status;
        }
    
        /**
         * Get the root cause of this exception (deprecated - use getCause() instead)
         *
         * @return cause
         */
        @Deprecated
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                if (r.getStatus() == NtStatus.NT_STATUS_NO_MORE_FILES) {
                    return false;
                }
                this.response = r;
            } catch (final SmbException e) {
                if (e.getNtStatus() == NtStatus.NT_STATUS_NO_MORE_FILES) {
                    log.debug("End of listing", e);
                    return false;
                }
                throw e;
            }
            return true;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top