Coverage Report - org.mule.transport.http.HttpResponseException
 
Classes in this File Line Coverage Branch Coverage Complexity
HttpResponseException
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * $Id: HttpResponseException.java 20321 2010-11-24 15:21:24Z dfeist $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 package org.mule.transport.http;
 11  
 
 12  
 /**
 13  
  * A wrapper exceptin for any http client return codes over the 400 range
 14  
  */
 15  
 public class HttpResponseException extends Exception
 16  
 {
 17  
     private String responseText;
 18  
     private int responseCode;
 19  
 
 20  
     public HttpResponseException(String responseText, int responseCode)
 21  
     {
 22  0
         super(responseText + ", code: " + responseCode);
 23  0
         this.responseCode = responseCode;
 24  0
         this.responseText = responseText;
 25  0
     }
 26  
 
 27  
     public String getResponseText()
 28  
     {
 29  0
         return responseText;
 30  
     }
 31  
 
 32  
     public int getResponseCode()
 33  
     {
 34  0
         return responseCode;
 35  
     }
 36  
 }