Example usage for java.io NotActiveException printStackTrace

List of usage examples for java.io NotActiveException printStackTrace

Introduction

In this page you can find the example usage for java.io NotActiveException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.iavante.sling.gad.content.impl.ContentToolsImpl.java

/**
 * Returns the public content url./*from ww  w .j  a va  2 s . com*/
 * 
 * @param node
 *          The current node
 * @return url
 */
private String get_url(Node node) throws RepositoryException {

    String url = "";
    String format = "";

    String fileName = content_creation.getFilenameFromNode(node, format);

    if (fileName.equals("")) {
        return "";
    }

    try {
        url = downloader_tool.getUrl(fileName);
    } catch (NotActiveException e) {
        e.printStackTrace();
    }

    if (fileName.endsWith(".flv"))
        url = url + ".flv";

    if (log.isInfoEnabled())
        log.info("Downloader url: " + url);
    return url;
}