1
2
3
4
5
6
7 package org.mule.transport.http;
8
9
10
11
12 public class HttpResponseException extends Exception
13 {
14 private String responseText;
15 private int responseCode;
16
17 public HttpResponseException(String responseText, int responseCode)
18 {
19 super(responseText + ", code: " + responseCode);
20 this.responseCode = responseCode;
21 this.responseText = responseText;
22 }
23
24 public String getResponseText()
25 {
26 return responseText;
27 }
28
29 public int getResponseCode()
30 {
31 return responseCode;
32 }
33 }