Package org.sonar.wsclient.base

Examples of org.sonar.wsclient.base.HttpException


    try {
      if (isSuccess(request)) {
        return request.body(HttpRequest.CHARSET_UTF8);
      }
      // TODO better handle error messages
      throw new HttpException(request.url().toString(), request.code(), request.body());

    } catch (HttpRequest.HttpRequestException e) {
      throw new IllegalStateException("Fail to request " + request.url(), e.getCause());
    }
  }
View Full Code Here

TOP

Related Classes of org.sonar.wsclient.base.HttpException

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.