本文整理了Java中org.jbundle.base.db.Record.doErrorReturn
方法的一些代码示例,展示了Record.doErrorReturn
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.doErrorReturn
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称: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;
}
/**
内容来源于网络,如有侵权,请联系作者删除!