Package com.xiaoleilu.hutool.exceptions

Examples of com.xiaoleilu.hutool.exceptions.NotInitedException


      group = StrUtil.EMPTY;
    }
   
    String tmpHost = setting.getString("host", group);
    if(StrUtil.isBlank(tmpHost)) {
      throw new NotInitedException("Host name is empy of group: " + group);
    }
   
    final int defaultPort = setting.getInt("port", group, 27017);
    return new ServerAddress(NetUtil.buildInetSocketAddress(tmpHost, defaultPort));
  }
View Full Code Here


 
  /**
   * 断言是否初始化默认引擎,若未初始化抛出 异常
   */
  private static void assertInit() {
    if(! isInited) throw new NotInitedException("Please use VelocityUtil.init() method to init Velocity default engine!");
  }
View Full Code Here

   * 等待所有Worker工作结束,否则阻塞
   * @throws InterruptedException
   */
  public void await() throws InterruptedException {
    if(countDownLatch == null) {
      throw new NotInitedException("Please call start() method first!");
    }
   
    countDownLatch.await();
  }
View Full Code Here

TOP

Related Classes of com.xiaoleilu.hutool.exceptions.NotInitedException

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.