Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ErrorMessage (0.07 sec)

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

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String errorMessage = "LDAP server not reachable";
    
            try {
                throw new LdapConfigurationException(errorMessage);
            } catch (LdapConfigurationException e) {
                assertEquals(errorMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
            String errorMessage = "This is a test error message.";
            PACDecodingException e = new PACDecodingException(errorMessage);
            // Expect the message to be set correctly and cause to be null
            assertEquals(errorMessage, e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a cause.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java

        public void test_constructor_withServletException() {
            // Create a ServletException with a message
            String errorMessage = "Test servlet error message";
            ServletException servletException = new ServletException(errorMessage);
    
            // Wrap it in ServletRuntimeException
            ServletRuntimeException runtimeException = new ServletRuntimeException(servletException);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            final String errorMessage = "Data store operation failed";
    
            try {
                throw new DataStoreException(errorMessage);
            } catch (DataStoreException e) {
                assertEquals(errorMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java

            // Test that message is inherited from the cause
            String errorMessage = "Invalid query syntax";
            ParseException parseException = new ParseException(errorMessage);
            QueryParseException queryParseException = new QueryParseException(parseException);
    
            assertEquals("org.apache.lucene.queryparser.classic.ParseException: " + errorMessage, queryParseException.getMessage());
        }
    
        public void test_getCause() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            // Setup mock SearchLogHelper that throws exception
            final String errorMessage = "Test exception occurred";
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    throw new RuntimeException(errorMessage);
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

            }
            final String errorMessage = longMessage.toString();
    
            // Create mock SearchEngineClient that throws exception with long message
            searchEngineClient = new SearchEngineClient() {
                @Override
                public long deleteByQuery(String index, QueryBuilder query) {
                    throw new RuntimeException(errorMessage);
                }
            };
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Preconditions.java

       *
       * @param expression a boolean expression
       * @param errorMessage the exception message to use if the check fails; will be converted to a
       *     string using {@link String#valueOf(Object)}
       * @throws IllegalArgumentException if {@code expression} is false
       */
      public static void checkArgument(boolean expression, @Nullable Object errorMessage) {
        if (!expression) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 22:11:00 UTC 2025
    - 53K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          AbstractFuture<String> future = new AbstractFuture<String>() {};
          AtomicReference<String> errorMessage = Atomics.newReference();
          executor.execute(
              new Runnable() {
                @Override
                public void run() {
                  future.set("success");
                  if (!future.isDone()) {
                    errorMessage.set("Set call exited before future was complete.");
                  }
                }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          AbstractFuture<String> future = new AbstractFuture<String>() {};
          AtomicReference<String> errorMessage = Atomics.newReference();
          executor.execute(
              new Runnable() {
                @Override
                public void run() {
                  future.set("success");
                  if (!future.isDone()) {
                    errorMessage.set("Set call exited before future was complete.");
                  }
                }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top