Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ScriptEngineException (1.91 sec)

  1. src/main/java/org/codelibs/fess/exception/ScriptEngineException.java

    /**
     * This exception is thrown when a script engine error occurs.
     */
    public class ScriptEngineException extends FessSystemException {
    
        private static final long serialVersionUID = 1L;
    
        /**
         * Constructor.
         * @param message The exception message.
         */
        public ScriptEngineException(final String message) {
            super(message);
        }
    
        /**
         * Constructor.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java

            // Test constructor with null message
            ScriptEngineException exception = new ScriptEngineException(null);
    
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_constructor_withNullMessageAndCause() {
            // Test constructor with null message and null cause
            ScriptEngineException exception = new ScriptEngineException(null, null);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

            // Try to execute with non-existent script type
            try {
                scriptExecutor.execute("nonexistent", "some script");
                fail("Expected ScriptEngineException");
            } catch (ScriptEngineException e) {
                assertTrue(e.getMessage().contains("nonexistent"));
            }
        }
    
        public void test_execute_withNullScriptType() {
            // Try to execute with null script type
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java

        public void test_getScriptEngine_nullName() {
            try {
                scriptEngineFactory.getScriptEngine(null);
                fail("Should throw ScriptEngineException for null name");
            } catch (ScriptEngineException e) {
                assertEquals("script name is null.", e.getMessage());
            }
        }
    
        // Test getScriptEngine with non-existent name
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/script/ScriptEngineFactory.java

            if (name == null) {
                throw new ScriptEngineException("script name is null.");
            }
            final ScriptEngine scriptEngine = scriptEngineMap.get(name.toLowerCase(Locale.ROOT));
            if (scriptEngine != null) {
                return scriptEngine;
            }
            throw new ScriptEngineException(name + " is not found.");
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top