Examples of ActionFailedException


Examples of com.github.jreddit.exception.ActionFailedException

    // Execute request
    Response response = httpClient.execute(request, responseHandler);
   
    // A HTTP error occurred
    if (response != null && response.getStatusCode() >= 300) {
      throw new ActionFailedException("HTTP Error (" + response.getStatusCode() + ") occurred for URI path: " + request.getURI().toString());
    }
   
    return response;
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.