Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for DOS_ERROR_CODES (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/smb/DosErrorTest.java

        }
    
        @Test
        @DisplayName("Structure: DOS_ERROR_CODES is non-null with [code,status] pairs")
        void dosErrorCodesStructureIsValid() {
            // Arrange & Act
            int[][] table = DosError.DOS_ERROR_CODES;
    
            // Assert
            assertNotNull(table, "DOS_ERROR_CODES must not be null");
            assertTrue(table.length > 0, "DOS_ERROR_CODES must not be empty");
            for (int i = 0; i < table.length; i++) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

        /**
         * Parameterised test covering many error codes.
         * - Error code 0 returns 0 (NT_STATUS_SUCCESS)
         * - Negative values with 0xC0000000 bits set are returned as-is
         * - Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL
         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 123, -7 })
        void testGetNtStatusVariousCodes(int errcode) {
            SmbException ex = new SmbException(errcode, false);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/DosError.java

     */
    public interface DosError {
    
        /**
         * Mapping table from DOS error codes to NT status codes.
         * Each entry contains a pair of [DOS error code, NT status code].
         */
        int[][] DOS_ERROR_CODES =
                { { 0x00000000, 0x00000000 }, { 0x00010001, 0xc0000002 }, { 0x00010002, 0xc0000002 }, { 0x00020001, 0xc000000f },
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/DosError.java

     */
    public interface DosError {
    
        /**
         * Mapping table from DOS error codes to NT status codes.
         * Each entry contains a pair of [DOS error code, NT status code].
         */
        int[][] DOS_ERROR_CODES = { { 0x00000000, 0x00000000 }, { 0x00010001, 0xc0000002 }, { 0x00010002, 0xc0000002 },
                { 0x00020001, 0xc000000f }, { 0x00020002, 0xc000006a }, { 0x00030001, 0xc000003a }, { 0x00030002, 0xc00000cb },
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbExceptionTest.java

        }
    
        @Test
        @DisplayName("Should handle DOS error codes")
        void testDOSErrorCodes() {
            // Given
            int dosError = 0x00020002; // File not found from DOS_ERROR_CODES
    
            // When
            SmbException exception = new SmbException(dosError, false);
    
            // Then
            assertNotNull(exception);
            assertNotNull(exception.getMessage());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbException.java

                errorCodeMessagesTmp.put(NT_STATUS_CODES[i], NT_STATUS_MESSAGES[i]);
            }
    
            final Map<Integer, Integer> dosErrorCodeStatusesTmp = new HashMap<>();
            for (final int[] element : DOS_ERROR_CODES) {
                dosErrorCodeStatusesTmp.put(element[0], element[1]);
                final int mappedNtCode = element[1];
                final String mappedNtMessage = errorCodeMessagesTmp.get(mappedNtCode);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
Back to Top