- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getMessageByCode (1 sec)
-
src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java
import org.junit.jupiter.params.provider.MethodSource; /** * Tests for {@link SmbAuthException}. * * These tests exercise the constructor and the mapping logic of * {@link SmbException#getMessageByCode(int)} and * {@link SmbException#getStatusByCode(int)}. */ @DisplayName("SmbAuthException Tests") class SmbAuthExceptionTest { /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbException.java
* such a case, please report it to jcifs at samba dot org and we will * change the mapping. */ public class SmbException extends IOException implements NtStatus, DosError, WinError { static String getMessageByCode(final int errcode) { /* Note there's a signedness error here because 0xC0000000 based values are * negative so it with NT_STATUS_SUCCESS (0) the binary search will not be
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/SmbException.java
} } // for backward compatibility since this is was different message in the NtStatus.NT_STATUS_CODES than returned // by getMessageByCode errorCodeMessagesTmp.put(0, "NT_STATUS_SUCCESS"); errorCodeMessages = Collections.unmodifiableMap(errorCodeMessagesTmp); dosErrorCodeStatuses = Collections.unmodifiableMap(dosErrorCodeStatusesTmp);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
// Assert: type, message derived from code, status mapping, and no cause assertNotNull(ex); assertTrue(ex instanceof SmbException); assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping"); assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
case SMB_COM_NT_TRANSACT_SECONDARY -> "SMB_COM_NT_TRANSACT_SECONDARY"; default -> "UNKNOWN"; }; final String str = errorCode == 0 ? "0" : SmbException.getMessageByCode(errorCode); return "command=" + c + ",received=" + received + ",errorCode=" + str + ",flags=0x" + Hexdump.toHexString(flags & 0xFF, 4)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
case SMB2_SET_INFO -> "SMB2_SET_INFO"; case SMB2_OPLOCK_BREAK -> "SMB2_OPLOCK_BREAK"; default -> "UNKNOWN"; }; final String str = this.status == 0 ? "0" : SmbException.getMessageByCode(this.status); return ("command=" + c + ",status=" + str + ",flags=0x" + Hexdump.toHexString(this.flags, 4) + ",mid=" + this.mid + ",wordCount=" + this.wordCount + ",byteCount=" + this.byteCount); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
case SMB_COM_LOCKING_ANDX -> "SMB_COM_LOCKING_ANDX"; default -> "UNKNOWN"; }; final String str = this.errorCode == 0 ? "0" : SmbException.getMessageByCode(this.errorCode); return ("command=" + c + ",received=" + this.received + ",errorCode=" + str + ",flags=0x"
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0)