Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getMessageByCode (0.98 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top