Example usage for javax.xml.parsers ParserConfigurationException getLocalizedMessage

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

Introduction

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

Prototype

public String getLocalizedMessage() 

Source Link

Document

Creates a localized description of this throwable.

Usage

From source file:org.pentaho.platform.web.servlet.ContextDiscoveryServlet.java

public ContextDiscoveryServlet() {
    DocumentBuilderFactory documentBuilderFactory;
    try {//w ww .  j  av  a  2  s.  co m
        documentBuilderFactory = XMLParserFactoryProducer.createSecureDocBuilderFactory();
    } catch (ParserConfigurationException e) {
        logger.error(e.getLocalizedMessage());
        documentBuilderFactory = DocumentBuilderFactory.newInstance();
    }
    factory = documentBuilderFactory;
}