- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for getNtStatus (0.05 sec)
-
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) -
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) -
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) -
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) -
src/main/java/jcifs/smb1/smb1/SmbTree.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.1K bytes - Viewed (0) -
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) -
src/main/java/jcifs/smb/SmbWatchHandleImpl.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.5K bytes - Viewed (0) -
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) -
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) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0)