Example usage for javax.naming NoInitialContextException toString

List of usage examples for javax.naming NoInitialContextException toString

Introduction

In this page you can find the example usage for javax.naming NoInitialContextException toString.

Prototype

public String toString() 

Source Link

Document

Generates the string representation of this exception.

Usage

From source file:com.cyberway.issue.crawler.Heritrix.java

/**
 * @return Jndi context for the crawler or null if none found.
 * @throws NamingException // w w  w  . ja  v  a  2 s.c  o  m
 */
protected static Context getJndiContext() throws NamingException {
    Context c = null;
    try {
        c = JndiUtils.getSubContext(CRAWLER_PACKAGE);
    } catch (NoInitialContextException e) {
        logger.fine("No JNDI Context: " + e.toString());
    }
    return c;
}