log.debug("Initializing page provider class " + m_provider);
m_provider.initialize(m_engine, props);
} catch (ClassNotFoundException e) {
log.error("Unable to locate provider class '" + classname + "'", e);
throw new WikiException("No provider class.", e);
} catch (InstantiationException e) {
log.error("Unable to create provider class '" + classname + "'", e);
throw new WikiException("Faulty provider class.", e);
} catch (IllegalAccessException e) {
log.error("Illegal access to provider class '" + classname + "'", e);
throw new WikiException("Illegal provider class.", e);
} catch (NoRequiredPropertyException e) {
log.error("Provider did not found a property it was looking for: " + e.getMessage(), e);
throw e; // Same exception works.
} catch (IOException e) {
log.error("An I/O exception occurred while trying to create a new page provider: " + classname, e);
throw new WikiException("Unable to start page provider: " + e.getMessage(), e);
}
}