congrats Icon
New! Announcing our next generation AI code completions
Read here
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 post requests using okhttp
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Option (scala)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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