001package com.thed.util;
002
003public class ErrorResource {
004
005    private String errorMsg;
006    private String errorCode;
007    private Object data;
008
009    public ErrorResource() {
010
011    }
012
013    public ErrorResource(String errorMsg, int errorCode) {
014        this.errorMsg = errorMsg;
015        this.errorCode = String.valueOf(errorCode);
016    }
017
018    public ErrorResource(String errorMsg, String errorCode) {
019        this.errorMsg = errorMsg;
020        this.errorCode = errorCode;
021    }
022
023    public ErrorResource(String errorMsg, String errorCode, Object data) {
024        this.errorMsg = errorMsg;
025        this.errorCode = errorCode;
026        this.data = data;
027    }
028
029    public String getErrorMsg() {
030        return errorMsg;
031    }
032
033    public void setErrorMsg(String errorMsg) {
034        this.errorMsg = errorMsg;
035    }
036
037    public String getErrorCode() {
038        return errorCode;
039    }
040
041    public void setErrorCode(String errorCode) {
042        this.errorCode = errorCode;
043    }
044
045    public Object getData() {
046        return data;
047    }
048
049    public void setData(Object data) {
050        this.data = data;
051    }
052
053}
054