MCPcopy Create free account
hub / github.com/L1yp/van-app / ErrorInfo

Class ErrorInfo

src/main/java/com/l1yp/model/common/ErrorInfo.java:6–51  ·  view source on GitHub ↗

2021/9/7 Created by 𝑳𝒚𝒑(l1yp@qq.com),

Source from the content-addressed store, hash-verified

4 * 2021/9/7 Created by 𝑳𝒚𝒑(l1yp@qq.com),
5 */
6public class ErrorInfo {
7
8 private int code;
9
10 private String message;
11
12 private Object data;
13
14 public ErrorInfo() {
15 }
16
17 public ErrorInfo(int code, String message) {
18 this.code = code;
19 this.message = message;
20 }
21
22 public ErrorInfo(int code, String message, Object data) {
23 this.code = code;
24 this.message = message;
25 this.data = data;
26 }
27
28 public int getCode() {
29 return code;
30 }
31
32 public void setCode(int code) {
33 this.code = code;
34 }
35
36 public String getMessage() {
37 return message;
38 }
39
40 public void setMessage(String message) {
41 this.message = message;
42 }
43
44 public Object getData() {
45 return data;
46 }
47
48 public void setData(Object data) {
49 this.data = data;
50 }
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected