Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getError (0.41 sec)

  1. src/main/java/jcifs/internal/witness/WitnessUnregisterResponse.java

         *
         * @return the error description
         */
        public String getError() {
            return error != null ? error : "Error code: " + returnCode;
        }
    
        /**
         * Sets the error message.
         *
         * @param error the error message
         */
        public void setError(String error) {
            this.error = error;
        }
    
        /**
         * Gets the return code.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessHeartbeatResponse.java

        }
    
        /**
         * Gets the error message.
         *
         * @return the error message
         */
        public String getError() {
            return error;
        }
    
        /**
         * Sets the error message.
         *
         * @param error the error message
         */
        public void setError(String error) {
            this.error = error;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessRegisterResponse.java

         *
         * @return the error description
         */
        public String getError() {
            return error != null ? error : "Error code: " + returnCode;
        }
    
        /**
         * Sets the error message.
         *
         * @param error the error message
         */
        public void setError(String error) {
            this.error = error;
        }
    
        /**
         * Gets the registration ID.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/rdma/RdmaWorkRequest.java

            this.error = error;
            this.completed = true;
        }
    
        /**
         * Get error if request failed
         *
         * @return exception if failed, null if successful
         */
        public Exception getError() {
            return error;
        }
    
        /**
         * Check if request failed
         *
         * @return true if failed, false otherwise
         */
        public boolean hasFailed() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessClient.java

                        return registration;
                    } else {
                        String errorMsg = response != null ? response.getError() : "Response was null";
                        throw new IOException("Witness registration failed: " + errorMsg);
                    }
    
                } catch (Exception e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  6. docs/smb3-features/06-witness-protocol-design.md

                        
                        return registration;
                    } else {
                        throw new IOException("Witness registration failed: " + response.getError());
                    }
                    
                } catch (Exception e) {
                    log.error("Failed to register for witness notifications", e);
                    throw new RuntimeException(e);
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            // Setup mock RPC response for failure
            WitnessRegisterResponse mockResponse = mock(WitnessRegisterResponse.class);
            when(mockResponse.isSuccess()).thenReturn(false);
            when(mockResponse.getError()).thenReturn("Registration failed");
    
            WitnessRpcClient mockRpc = mock(WitnessRpcClient.class);
            lenient().when(mockRpc.register(any(WitnessRegisterRequest.class))).thenReturn(mockResponse);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexResponseTest.java

            assertEquals(5, response.getNumberOfInputDocs());
            assertEquals(100, response.getTook());
            assertFalse(response.hasError());
            assertNotNull(response.getErrors());
            assertEquals(0, response.getErrors().size());
        }
    
        @Test
        public void test_constructorWithErrors() throws Exception {
            List<Throwable> errors = new ArrayList<>();
            errors.add(new Exception("Test error 1"));
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Nov 13 00:40:54 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/index/SuggestDeleteResponseTest.java

            assertNotNull(response);
            assertEquals(100, response.getTook());
            assertFalse(response.hasError());
            assertNotNull(response.getErrors());
            assertEquals(0, response.getErrors().size());
        }
    
        @Test
        public void test_constructorWithErrors() throws Exception {
            List<Throwable> errors = new ArrayList<>();
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Nov 13 00:40:54 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/WebApiUtil.java

        /**
         * Sets an error in the current request with the specified status code and message.
         *
         * @param statusCode The HTTP status code
         * @param message The error message
         */
        public static void setError(final int statusCode, final String message) {
            LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, message)));
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top