public void setErrorCode(ErrorCode errorCode) {
   this.errorMessage = errorCode.getMsg();
   this.messageType = errorCode.getCode();
 }
 public MessageBean(ErrorCode errorCode, T message) {
   this.messageType = errorCode.getCode();
   this.errorMessage = errorCode.getMsg();
   this.message = message;
 }