Package org.apache.wiki.api.exceptions

Examples of org.apache.wiki.api.exceptions.NoRequiredPropertyException


        m_engine = engine;

        // FIXME: This assumes a bit too much.
        if( engine.getBaseURL() == null || engine.getBaseURL().length() == 0 )
        {
            throw new NoRequiredPropertyException( "RSS requires jspwiki.baseURL to be set!",
                                                   WikiEngine.PROP_BASEURL );
        }

        m_channelDescription = properties.getProperty( PROP_CHANNEL_DESCRIPTION,
                                                       m_channelDescription );
View Full Code Here


     @throws NoRequiredPropertyException If the search key is not in the property set.
     */
    public static String getRequiredProperty( Properties props, String key ) throws NoRequiredPropertyException {
        String value = getStringProperty( props, key, null );
        if( value == null ) {
            throw new NoRequiredPropertyException( "Required property not found", key );
        }
        return value;
    }
View Full Code Here

                log.fatal( "You are not allowed to access this authorizer class", e );
                throw new WikiException( "You are not allowed to access this authorizer class", e );
            }
        }

        throw new NoRequiredPropertyException( "Unable to find a " + PROP_AUTHORIZER + " entry in the properties.",
                                               PROP_AUTHORIZER );
    }
View Full Code Here

            m_renameRoles = "UPDATE " + roleTable + " SET " + m_loginName + "=? WHERE " + m_loginName + "=?";
        }
        catch( NamingException e )
        {
            log.error( "JDBCUserDatabase initialization error: " + e.getMessage() );
            throw new NoRequiredPropertyException( PROP_DB_DATASOURCE, "JDBCUserDatabase initialization error: " + e.getMessage() );
        }

        // Test connection by doing a quickie select
        Connection conn = null;
        try
View Full Code Here

    {
        m_diffCommand = properties.getProperty( PROP_DIFFCOMMAND );

        if( (null == m_diffCommand) || (m_diffCommand.trim().equals( "" )) )
        {
            throw new NoRequiredPropertyException( "ExternalDiffProvider missing required property", PROP_DIFFCOMMAND );
        }

        m_encoding = engine.getContentEncoding();
    }
View Full Code Here

            m_deleteGroupMembers = "DELETE FROM " + memberTable + " WHERE " + m_name + "=?";
        }
        catch( NamingException e )
        {
            log.error( "JDBCGroupDatabase initialization error: " + e );
            throw new NoRequiredPropertyException( PROP_GROUPDB_DATASOURCE, "JDBCGroupDatabase initialization error: " + e);
        }

        // Test connection by doing a quickie select
        Connection conn = null;
        PreparedStatement ps = null;
View Full Code Here

     @throws NoRequiredPropertyException If the search key is not in the property set.
     */
    public static String getRequiredProperty( Properties props, String key ) throws NoRequiredPropertyException {
        String value = getStringProperty( props, key, null );
        if( value == null ) {
            throw new NoRequiredPropertyException( "Required property not found", key );
        }
        return value;
    }
View Full Code Here

TOP

Related Classes of org.apache.wiki.api.exceptions.NoRequiredPropertyException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.