Example usage for java.net URISyntaxException fillInStackTrace

List of usage examples for java.net URISyntaxException fillInStackTrace

Introduction

In this page you can find the example usage for java.net URISyntaxException fillInStackTrace.

Prototype

public synchronized Throwable fillInStackTrace() 

Source Link

Document

Fills in the execution stack trace.

Usage

From source file:com.ibm.connectors.splunklog.SplunkConnectionData.java

public URI getSplunkURI() throws ConnectorException {
    try {//  www. ja v  a 2  s  .  c  o m
        this.setSplunkURI(this.myUriBuilder.build());
    } catch (URISyntaxException e) {
        e.fillInStackTrace();
        throw new ConnectorException(e.toString());
    }
    return this.splunkURI;
}

From source file:uk.nhs.cfh.dsp.srth.query.transform.sql.impl.ConstraintColumnNameProviderImpl.java

/**
 * Configure map.//from   w  ww.j a  va  2  s  .  c  o m
 *
 * @param configFileURL the config file's URL
 */
private void configureMap(URL configFileURL) {

    try {
        URI fileURI = configFileURL.toURI();
        File file = new File(fileURI);
        if (file.exists()) {
            XMLConfiguration configuration = new XMLConfiguration(file);
            configuration.setExpressionEngine(new XPathExpressionEngine());
            List fields = configuration.configurationsAt("mapped_columns.mapped_column");
            for (Object field : fields) {
                HierarchicalConfiguration sub = (HierarchicalConfiguration) field;
                // sub contains now all data about a single field
                String constraintName = sub.getString("name");
                String columnName = sub.getString("column");

                // put values in map
                columnMap.put(constraintName, columnName);
            }
        } else {
            logger.warn("Error reading file from provided URL.");
            throw new IllegalArgumentException("Error reading file from provided URL.");
        }
    } catch (URISyntaxException e) {
        logger.warn("Error reading file from provided URL. Nested exception is : "
                + e.fillInStackTrace().getMessage());
    } catch (ConfigurationException e) {
        logger.warn(
                "Error reading configuration file. Nested exception is : " + e.fillInStackTrace().getMessage());
    }
}