Example usage for javax.xml.parsers ParserConfigurationException getStackTrace

List of usage examples for javax.xml.parsers ParserConfigurationException getStackTrace

Introduction

In this page you can find the example usage for javax.xml.parsers ParserConfigurationException getStackTrace.

Prototype

public StackTraceElement[] getStackTrace() 

Source Link

Document

Provides programmatic access to the stack trace information printed by #printStackTrace() .

Usage

From source file:com.esri.geoevent.solutions.adapter.cot.CoTAdapterInbound.java

public CoTAdapterInbound(AdapterDefinition adapterDefinition, String guid)
        throws ConfigurationException, ComponentException {
    super(adapterDefinition);

    this.guid = guid;

    messageParser = new MessageParser(this);
    saxFactory = SAXParserFactory.newInstance();
    try {/* w  w  w. ja v a 2 s. co m*/
        saxParser = saxFactory.newSAXParser();
    } catch (ParserConfigurationException e) {
        e.printStackTrace();
        saxParser = null;
        log.error(e);
        log.error(e.getStackTrace());

    } catch (SAXException e) {
        e.printStackTrace();
        saxParser = null;
        log.error(e);
        log.error(e.getStackTrace());
    }

}