Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getStatusByCode (0.06 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

            assertEquals(SmbException.getStatusByCode(code), e.getNtStatus(), "status for code " + Integer.toHexString(code));
        }
    
        @Test
        void negativeCodeDefaultsToUnsuccessful() {
            SmbAuthException e = new SmbAuthException(-1);
            assertEquals(SmbException.getStatusByCode(-1), e.getNtStatus());
            assertEquals(SmbException.getMessageByCode(-1), e.getMessage());
    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

                    } else {
                        return DOS_ERROR_MESSAGES[mid];
                    }
                }
            }
    
            return "0x" + Hexdump.toHexString(errcode, 8);
        }
    
        static int getStatusByCode(final int errcode) {
            if ((errcode & 0xC0000000) != 0) {
                return errcode;
            }
            int min = 0;
            int max = DOS_ERROR_CODES.length - 1;
    
            while (max >= min) {
    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

            String message = errorCodeMessages.get(errcode);
            if (message == null) {
                message = "0x" + Hexdump.toHexString(errcode, 8);
            }
            return message;
        }
    
        static int getStatusByCode(final int errcode) {
            int statusCode;
            if ((errcode & 0xC0000000) != 0) {
                statusCode = errcode;
            } else if (dosErrorCodeStatuses.containsKey(errcode)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top