@author SeanDragon Create By 2017-07-20 15:57
| 6 | * Create By 2017-07-20 15:57 |
| 7 | */ |
| 8 | public class HttpException extends Exception { |
| 9 | private HttpSend httpSend; |
| 10 | private HttpReceive httpReceive; |
| 11 | |
| 12 | public HttpException(String msg) { |
| 13 | super(msg); |
| 14 | } |
| 15 | |
| 16 | public HttpException(Exception e) { |
| 17 | super(e); |
| 18 | } |
| 19 | |
| 20 | public HttpException(String msg, Exception e) { |
| 21 | super(msg, e); |
| 22 | } |
| 23 | |
| 24 | public HttpException(String msg, HttpSend httpSend, HttpReceive httpReceive) { |
| 25 | super(msg); |
| 26 | this.httpSend = httpSend; |
| 27 | this.httpReceive = httpReceive; |
| 28 | } |
| 29 | |
| 30 | @Override |
| 31 | public String getLocalizedMessage() { |
| 32 | return super.getMessage().concat("\r\nHTTP_SEND:\t" + httpSend.toString().concat("\r\nHTTP_RECEIVE:\t" + httpReceive.toString())); |
| 33 | } |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected