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

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

Best Java code snippets using me.j360.dubbo.base.constant.BaseErrorCode.getErrorCode (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.constantBaseErrorCodegetErrorCode

Popular methods of BaseErrorCode

  • getErrorMsg

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
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