Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 800 for isInvalid (0.06 sec)

  1. src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java

        public void test_constructorWithMessageAndCause() {
            // Test constructor with message and cause
            String message = "Query parsing failed";
            Exception cause = new IllegalArgumentException("Invalid query syntax");
    
            SearchQueryException exception = new SearchQueryException(message, cause);
    
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                    .orElseThrow(() -> new SsoMessageException(
                            messages -> messages.addErrorsFailedToProcessSsoRequest(UserMessages.GLOBAL_PROPERTY_KEY, "Invalid state."),
                            "Failed to process metadata.", new SsoProcessException("Invalid state.")));
        }
    
        /**
         * Gets the logout response.
         * @return The logout response.
         */
        protected ActionResponse getLogoutResponse() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  3. docs/en/docs/tutorial/handling-errors.md

    These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data.
    
    You can override these exception handlers with your own.
    
    ### Override request validation exceptions { #override-request-validation-exceptions }
    
    When a request contains invalid data, **FastAPI** internally raises a `RequestValidationError`.
    
    And it also includes a default exception handler for it.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

        public void test_process_withInvalidExpires() throws Exception {
            // Test that invalid expires value is handled
            Crawler.Options options = new Crawler.Options();
            options.sessionId = "test-session";
            options.expires = "invalid";
    
            // Verify the expires value is set even if invalid
            assertEquals("invalid", options.expires);
        }
    
        public void test_process_withName() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#watch()
         */
        @Override
        public List<FileNotifyInformation> watch() throws CIFSException {
            if (!this.handle.isValid()) {
                throw new SmbException("Watch was broken by tree disconnect");
            }
            try (SmbTreeHandleImpl th = this.handle.getTree()) {
    
                CommonServerMessageBlockRequest req;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.decode(buffer, 0, 23),
                    "Should throw exception when length < 24");
    
            assertEquals("Invalid resume key", exception.getMessage(), "Exception message should match");
        }
    
        @Test
        @DisplayName("Test decode throws exception with zero length")
        void testDecodeThrowsExceptionWithZeroLength() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. cmd/streaming-signature-v4_test.go

    		expectedErr error
    	}
    	tests := []testCase{
    		// Test - 1 valid buffer with CRLF.
    		{bytes.NewReader([]byte("\r\n")), nil},
    		// Test - 2 invalid buffer with no CRLF.
    		{bytes.NewReader([]byte("he")), errMalformedEncoding},
    		// Test - 3 invalid buffer with more characters.
    		{bytes.NewReader([]byte("he\r\n")), errMalformedEncoding},
    		// Test - 4 smaller buffer than expected.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

    public class InvalidQueryExceptionTest extends UnitFessTestCase {
    
        public void test_constructor_withMessageCodeMessageAndCause() {
            // Setup
            final String message = "Invalid query syntax error";
            final Exception cause = new RuntimeException("Query parsing failed");
            final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsInvalidQueryUnknown(UserMessages.GLOBAL_PROPERTY_KEY);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/LmhostsTest.java

            // Create a temporary lmhosts file with invalid IP formats
            File lmhostsFile = tempDir.resolve("lmhosts_invalid").toFile();
            try (FileWriter writer = new FileWriter(lmhostsFile)) {
                writer.write("192.168 HOST1\n"); // Invalid IP - missing 2 octets (should be skipped)
                writer.write("192.168.1.100 VALIDHOST\n");
                writer.write("not.an.ip HOST2\n"); // Invalid IP format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PacTest.java

            // Create minimal PAC structure with wrong version
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, 0); // buffer count = 0
            writeLittleEndianInt(baos, 99); // invalid version
            baos.write(new byte[1]); // Make it > 8 bytes
            byte[] pacData = baos.toByteArray();
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(pacData, keys));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top