Beispiel #1
0
 public static MyResponse err(MyErrorCode errorCode) {
   MyResponse response = new MyResponse();
   response.setStatus(STATUS_ERROR);
   Error error = new Error();
   error.setErrorCode(errorCode.getErrorCode());
   error.setErrorInfo(errorCode.getErrorInfo());
   response.setError(error);
   return response;
 }