Example usage for javax.xml.transform TransformerFactoryConfigurationError TransformerFactoryConfigurationError

List of usage examples for javax.xml.transform TransformerFactoryConfigurationError TransformerFactoryConfigurationError

Introduction

In this page you can find the example usage for javax.xml.transform TransformerFactoryConfigurationError TransformerFactoryConfigurationError.

Prototype

public TransformerFactoryConfigurationError(Exception e) 

Source Link

Document

Create a new TransformerFactoryConfigurationError with a given Exception base cause of the error.

Usage

From source file:net.sf.joost.trax.TransformerFactoryImpl.java

/**
 * The default constructor.//from  www .j  a v  a2  s  .  c o  m
 */
public TransformerFactoryImpl() {
    try {
        // initialize default messageEmitter
        msgEmitter = StreamEmitter.newEmitter(System.err, null);
        ((StreamEmitter) msgEmitter).setOmitXmlDeclaration(true);
    } catch (UnsupportedEncodingException e) {
        // must not and cannot happen since outputProperties was null
        throw new TransformerFactoryConfigurationError(e);
    }
}

From source file:org.n52.wps.server.request.InputHandler.java

protected String getComplexValueNodeString(Node complexValueNode) {
    String complexValue;/*w  w w  . j av a 2s  . c o  m*/
    try {
        complexValue = XMLUtil.nodeToString(complexValueNode);
        complexValue = complexValue.substring(complexValue.indexOf(">") + 1, complexValue.lastIndexOf("</"));
    } catch (TransformerFactoryConfigurationError e1) {
        throw new TransformerFactoryConfigurationError("Could not parse inline data. Reason " + e1);
    } catch (TransformerException e1) {
        throw new TransformerFactoryConfigurationError("Could not parse inline data. Reason " + e1);
    }
    return complexValue;
}