Package org.mokai.config

Examples of org.mokai.config.ConfigurationException


    // search from file
    InputStream inputStream = searchFromFile(path);

    // if not found, throw exception
    if (inputStream == null) {
      throw new ConfigurationException("path " + path + " couldn't be found");
    }

    try {
      load(inputStream);
    } catch (Exception e) {
      log.error("Exception loading configuration: " + e.getMessage(), e);
      throw new ConfigurationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.mokai.config.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.