Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for getErrorCode (0.18 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test getErrorCode() method.
         */
        @Test
        void testGetErrorCode() {
            int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED
            DcerpcException exception = new DcerpcException(errorCode);
            assertEquals(errorCode, exception.getErrorCode(), "getErrorCode() should return the correct error code.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                    log.trace("Returned from NtTransNotifyChange " + resp.getErrorCode());
                }
    
                if (!resp.isReceived()) {
                    throw new CIFSException("Did not receive response");
                }
    
                if (resp.getErrorCode() == 0x10B) {
                    this.handle.markClosed();
                }
                if (resp.getErrorCode() == 0x10C) {
                    resp.getNotifyInformation().clear();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/ResponseTest.java

        }
    
        @Test
        void testGetErrorCode() {
            // Simulate error code
            when(mockResponse.getErrorCode()).thenReturn(-1);
            assertEquals(-1, mockResponse.getErrorCode());
    
            // Verify the method was called
            verify(mockResponse, times(1)).getErrorCode();
        }
    
        @Test
        void testSetMid() {
            long mid = 12345L;
            mockResponse.setMid(mid);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

         *
         * @param cause the underlying exception
         */
        public SQLRuntimeException(final SQLException cause) {
            super("ECL0072", asArray(getSql(cause), getRealMessage(cause), Integer.toString(cause.getErrorCode()), cause.getSQLState()), cause);
        }
    
        /**
         * Returns the <code>SQL</code>.
         *
         * @param cause the underlying exception
         * @return the <code>SQL</code>
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

         */
        @Override
        public Exception getException() {
            return this.exception;
        }
    
        /**
         *
         * @return error status code
         */
        @Override
        public final int getErrorCode() {
            return getStatus();
        }
    
        /**
         *
         * @return whether signature verification failed
         */
        @Override
        public final boolean isVerifyFailed() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            int access = 123;
    
            // Simulate DCERPC_FAULT_OP_RNG_ERROR for MsrpcSamrConnect4
            doThrow(new DcerpcException("Operation range error") {
                @Override
                public int getErrorCode() {
                    return DcerpcError.DCERPC_FAULT_OP_RNG_ERROR;
                }
            }).when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class));
            // Subsequent call for MsrpcSamrConnect2 should succeed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/DcerpcException.java

            super(msg, rootCause);
        }
    
        /**
         * Returns the DCE/RPC error code associated with this exception
         *
         * @return the error code
         */
        public int getErrorCode() {
            return this.error;
        }
    
        /**
         *
         * @return the root cause
         * @deprecated use {@link #getCause()}
         */
        @Deprecated
        public Throwable getRootCause() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/msrpc/SamrPolicyHandle.java

            }
            final MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this);
            try {
                handle.sendrecv(rpc);
            } catch (final DcerpcException de) {
                if (de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR) {
                    throw de;
                }
                final MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this);
                handle.sendrecv(rpc2);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java

            return 4;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
    
            if (this.getErrorCode() != 0) {
                return 4;
            }
    
            try {
                this.securityDescriptor = new SecurityDescriptor();
                bufferIndex += this.securityDescriptor.decode(buffer, bufferIndex, len);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/transport/Response.java

         *
         * @return number of credits granted by the server
         */
        int getGrantedCredits();
    
        /**
         * Gets the error status code.
         *
         * @return status code
         */
        int getErrorCode();
    
        /**
         * Sets the message ID.
         *
         * @param k the message ID to set
         */
        void setMid(long k);
    
        /**
         * Gets the message ID.
         *
         * @return mid
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top