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 | 0 | super(responseText + ", code: " + responseCode); |
20 | 0 | this.responseCode = responseCode; |
21 | 0 | this.responseText = responseText; |
22 | 0 | } |
23 | |
|
24 | |
public String getResponseText() |
25 | |
{ |
26 | 0 | return responseText; |
27 | |
} |
28 | |
|
29 | |
public int getResponseCode() |
30 | |
{ |
31 | 0 | return responseCode; |
32 | |
} |
33 | |
} |