List of usage examples for javax.servlet ServletException setStackTrace
public void setStackTrace(StackTraceElement[] stackTrace)
From source file:lucee.runtime.engine.CFMLEngineImpl.java
private CFMLFactoryImpl loadJSPFactory(ConfigServerImpl configServer, ServletConfig sg, int countExistingContextes) throws ServletException { try {// www. j a va 2 s . co m // Load Config RefBoolean isCustomSetting = new RefBooleanImpl(); Resource configDir = getConfigDirectory(sg, configServer, countExistingContextes, isCustomSetting); CFMLFactoryImpl factory = new CFMLFactoryImpl(this, sg); ConfigWebImpl config = XMLConfigWebFactory.newInstance(factory, configServer, configDir, isCustomSetting.toBooleanValue(), sg); factory.setConfig(config); return factory; } catch (Exception e) { ServletException se = new ServletException(e.getMessage()); se.setStackTrace(e.getStackTrace()); throw se; } }