Tabnine Logo
BaseErrorCode
Code IndexAdd Tabnine to your IDE (free)

How to use
BaseErrorCode
in
me.j360.dubbo.base.constant

Best Java code snippets using me.j360.dubbo.base.constant.BaseErrorCode (Showing top 4 results out of 315)

origin: xuminwlt/j360-dubbo-app-all

  public void setErrorCode(BaseErrorCode errorCode) {
    this.resultCode = errorCode.getErrorCode();
    this.resultMsg = errorCode.getErrorMsg();
    this.success = false;
  }
}
origin: xuminwlt/j360-dubbo-app-all

public void setUserInfoToDB(List<? extends UserInfo> items) {
  Long time = System.currentTimeMillis();
  try {
    execute(batchUserInfoSql, items, new BatchUpdateCallBack() {
      @Override
      public void execute(PreparedStatement ps, int i) {
        try {
          ps.setObject(1, items.get(i).getUid());
          ps.setObject(2, items.get(i).getLikeCount());
          ps.setObject(3, items.get(i).getBelikeCount());
          ps.setObject(4, items.get(i).getPostCount());
          ps.setObject(5, time);
          ps.setObject(6, time);
        } catch (Exception e) {
          log.error("批量插入user_info数据时异常: {}", items.get(i),e);
        }
      }
    });
  } catch (Exception e) {
    throw new RepositoryException(DefaultErrorCode.DB_ERROR.getErrorCode(), DefaultErrorCode.DB_ERROR.getErrorMsg(), e);
  }
}
origin: xuminwlt/j360-dubbo-app-all

public static DefaultPageResult fail(BaseErrorCode errorCode) {
  return newBuilder().success(false).data(null).code(errorCode.getErrorCode()).msg(errorCode.getErrorMsg()).build();
}
origin: xuminwlt/j360-dubbo-app-all

public static DefaultResult fail(BaseErrorCode errorCode) {
  return newBuilder().success(false).data(null).code(errorCode.getErrorCode()).msg(errorCode.getErrorMsg()).build();
}
me.j360.dubbo.base.constantBaseErrorCode

Javadoc

Package: me.j360.dubbo.base.api User: min_xu Date: 2017/3/15 下午8:04 说明:

Most used methods

  • getErrorCode
  • getErrorMsg

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now