Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ThemeException (0.06 sec)

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

     */
    public class ThemeException extends FessSystemException {
    
        private static final long serialVersionUID = 1L;
    
        /**
         * Constructs a new ThemeException with the specified message and cause.
         *
         * @param message the exception message
         * @param cause the underlying cause of this exception
         */
        public ThemeException(final String message, final Throwable cause) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

         * @return the theme name
         * @throws ThemeException if theme name cannot be determined
         */
        protected String getThemeName(final Artifact artifact) {
            final String themeName = artifact.getName().substring(ArtifactType.THEME.getId().length() + 1);
            if (StringUtil.isBlank(themeName)) {
                throw new ThemeException("Theme name is empty: " + artifact);
            }
            return themeName;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java

            ThemeException exception = new ThemeException(message, null);
    
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_inheritance() {
            // Test that ThemeException properly extends FessSystemException
            ThemeException exception = new ThemeException("Test");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                themeHelper.getJarFile(artifact);
                fail("Should throw ThemeException");
            } catch (Exception e) {
                // Should throw ThemeException or other exception related to file not found
                assertTrue(e.getMessage().contains("does not exist") || e instanceof ThemeException);
            }
        }
    
        public void test_closeQuietly_nonExistentDirectory() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top