org.jbundle.base.db.Record.doErrorReturn()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(87)

本文整理了Java中org.jbundle.base.db.Record.doErrorReturn方法的一些代码示例,展示了Record.doErrorReturn的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.doErrorReturn方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:doErrorReturn

Record.doErrorReturn介绍

[英]Called when a error happens on a file operation, return the errorcode, or fix the problem.
[中]当文件操作发生错误、返回错误代码或修复问题时调用。

代码示例

代码示例来源:origin: org.jbundle.base/org.jbundle.base

/**
 * Called when a error happens on a file operation, return the errorcode, or fix the problem.
 * @param iChangeType The type of change that occurred.
 * @param iErrorCode The error code encountered on the file operation.
 * @return The new error code, or return the original code if you can't fix it.
 */
public int handleErrorReturn(int iChangeType, int iErrorCode)        // init this field override for other value
{
  BaseListener nextListener = this.getNextEnabledListener();
  while (nextListener != null)
  {
    boolean bOldState = nextListener.setEnabledListener(false);  // Don't allow it to be called again
    iErrorCode = ((FileListener)nextListener).doErrorReturn(iChangeType, iErrorCode);
    nextListener.setEnabledListener(bOldState);
    nextListener = nextListener.getNextEnabledListener();
  }
  iErrorCode = this.doErrorReturn(iChangeType, iErrorCode);
  return iErrorCode;
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Called when a error happens on a file operation, return the errorcode, or fix the problem.
 * @param iChangeType The type of change that occurred.
 * @param iErrorCode The error code encountered on the file operation.
 * @return The new error code, or return the original code if you can't fix it.
 */
public int handleErrorReturn(int iChangeType, int iErrorCode)        // init this field override for other value
{
  BaseListener nextListener = this.getNextEnabledListener();
  while (nextListener != null)
  {
    boolean bOldState = nextListener.setEnabledListener(false);  // Don't allow it to be called again
    iErrorCode = ((FileListener)nextListener).doErrorReturn(iChangeType, iErrorCode);
    nextListener.setEnabledListener(bOldState);
    nextListener = nextListener.getNextEnabledListener();
  }
  iErrorCode = this.doErrorReturn(iChangeType, iErrorCode);
  return iErrorCode;
}
/**

代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db

/**
 * Called when a error happens on a file operation, return the errorcode, or fix the problem.
 * @param iChangeType The type of change that occurred.
 * @param iErrorCode The error code encountered on the file operation.
 * @return The new error code, or return the original code if you can't fix it.
 */
public int handleErrorReturn(int iChangeType, int iErrorCode)        // init this field override for other value
{
  BaseListener nextListener = this.getNextEnabledListener();
  while (nextListener != null)
  {
    boolean bOldState = nextListener.setEnabledListener(false);  // Don't allow it to be called again
    iErrorCode = ((FileListener)nextListener).doErrorReturn(iChangeType, iErrorCode);
    nextListener.setEnabledListener(bOldState);
    nextListener = nextListener.getNextEnabledListener();
  }
  iErrorCode = this.doErrorReturn(iChangeType, iErrorCode);
  return iErrorCode;
}
/**

相关文章

微信公众号

最新文章

更多

Record类方法