- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 33 for getNtStatus (0.07 sec)
- 
				
				src/test/java/jcifs/smb/SmbExceptionTest.java// When SmbException exception = new SmbException(ntStatus, false); // Then assertNotNull(exception); assertEquals(ntStatus, exception.getNtStatus()); assertTrue(exception.getMessage().contains("Access is denied")); } @Test @DisplayName("Should create SmbException with message") void testSmbExceptionWithMessage() { // GivenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb/SmbOperationException.java} } return "unknown"; } private long extractNtStatus(Throwable cause) { if (cause instanceof SmbException) { return ((SmbException) cause).getNtStatus(); } return 0; } private String extractServerMessage(Throwable cause) { if (cause instanceof SmbException) { // Try to get server message from SMB exceptionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb/SmbCopyUtil.javaRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb1/http/NtlmHttpFilter.javaif (LogStream.level > 1) { log.println("NtlmHttpFilter: " + ntlm.getName() + ": 0x" + jcifs.smb1.util.Hexdump.toHexString(sae.getNtStatus(), 8) + ": " + sae); } if (sae.getNtStatus() == NtStatus.NT_STATUS_ACCESS_VIOLATION) { /* Server challenge no longer valid for * externally supplied password hashes. Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb/SmbFileInputStream.javan = resp.getDataLength(); } catch (final SmbException e) { if (e.getNtStatus() == 0xC0000011) { // NT_STATUS_END_OF_FILE log.debug("Reached end of file", e); n = -1; } else { Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0)
- 
				
				src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java// Assert assertEquals("Unexpectedly reached end of file", ex.getMessage(), "Default message must match"); assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Default NT status should be UNSUCCESSFUL"); assertNull(ex.getCause(), "Cause should be null by default"); assertNull(ex.getRootCause(), "Root cause should be null by default");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0)
- 
				
				src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.javaSmbException 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb/SmbSessionImpl.java} } else { if (e.getNtStatus() != 0xC000035C && e.getNtStatus() != 0xC0000203 || !trans.isSMB2()) { throw e; } if (e.getNtStatus() == 0xC0000203) { // USER_SESSION_DELETED try {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb1/smb1/SmbException.javastatus = 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb/SmbWatchHandleImpl.javaRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.5K bytes - Viewed (0)