Example usage for javax.servlet ServletException setStackTrace

List of usage examples for javax.servlet ServletException setStackTrace

Introduction

In this page you can find the example usage for javax.servlet ServletException setStackTrace.

Prototype

public void setStackTrace(StackTraceElement[] stackTrace) 

Source Link

Document

Sets the stack trace elements that will be returned by #getStackTrace() and printed by #printStackTrace() and related methods.

Usage

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;
    }

}