Package org.maltparserx.core.config

Examples of org.maltparserx.core.config.ConfigurationException


      Object[] arguments = new Object[params.length];
      arguments[0] = this;
      Constructor<?> constructor = clazz.getConstructor(params);
      return (AbstractParserFactory)constructor.newInstance(arguments);
    } catch (NoSuchMethodException e) {
      throw new ConfigurationException("The parser factory '"+clazz.getName()+"' cannot be initialized. ", e);
    } catch (InstantiationException e) {
      throw new ConfigurationException("The parser factory '"+clazz.getName()+"' cannot be initialized. ", e);
    } catch (IllegalAccessException e) {
      throw new ConfigurationException("The parser factory '"+clazz.getName()+"' cannot be initialized. ", e);
    } catch (InvocationTargetException e) {
      throw new ConfigurationException("The parser factory '"+clazz.getName()+"' cannot be initialized. ", e);     
    }
  }
View Full Code Here


      configLogger = Logger.getLogger(logfile);
      FileAppender fileAppender = null;
      try {
        fileAppender = new FileAppender(new PatternLayout("%m"),configDir.getWorkingDirectory().getPath()+File.separator+logfile, true);
      } catch(IOException e) {
        throw new ConfigurationException("It is not possible to create a configuration log file. ", e);
      }
      fileAppender.setThreshold(Level.toLevel(level, Level.INFO));
      configLogger.addAppender(fileAppender);
      configLogger.setLevel(Level.toLevel(level, Level.INFO))
    } else {
View Full Code Here

      }
      if (configDir.getInfoFileWriter() != null) {
        configDir.getInfoFileWriter().flush();
      }
    } catch (IOException e) {
      throw new ConfigurationException("Could not write to the configuration information file. ", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.maltparserx.core.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.