MCPcopy Create free account
hub / github.com/SeanDragon/protools / HttpException

Class HttpException

http/src/main/java/pro/tools/http/pojo/HttpException.java:8–34  ·  view source on GitHub ↗

@author SeanDragon Create By 2017-07-20 15:57

Source from the content-addressed store, hash-verified

6 * Create By 2017-07-20 15:57
7 */
8public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected