本文整理了Java中java.util.ConcurrentModificationException.initCause()
方法的一些代码示例,展示了ConcurrentModificationException.initCause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentModificationException.initCause()
方法的具体详情如下:
包路径:java.util.ConcurrentModificationException
类名称:ConcurrentModificationException
方法名:initCause
暂无
代码示例来源:origin: org.intermine/intermine-objectstore
/**
* {@inheritDoc}
* @param index of the ResultsRow required
* @return the relevant ResultsRow as an Object
*/
@Override
public Object get(int index) {
List<Object> resultList = null;
try {
resultList = range(index, index);
} catch (DataChangedException e) {
ConcurrentModificationException e2 = new ConcurrentModificationException("ObjectStore"
+ " error has occurred (in get) - data changed");
e2.initCause(e);
throw e2;
} catch (ObjectStoreException e) {
throw new RuntimeException("ObjectStore error has occurred (in get)", e);
}
return resultList.get(0);
}
代码示例来源:origin: intermine/intermine
/**
* {@inheritDoc}
* @param index of the ResultsRow required
* @return the relevant ResultsRow as an Object
*/
@Override
public Object get(int index) {
List<Object> resultList = null;
try {
resultList = range(index, index);
} catch (DataChangedException e) {
ConcurrentModificationException e2 = new ConcurrentModificationException("ObjectStore"
+ " error has occurred (in get) - data changed");
e2.initCause(e);
throw e2;
} catch (ObjectStoreException e) {
throw new RuntimeException("ObjectStore error has occurred (in get)", e);
}
return resultList.get(0);
}
代码示例来源:origin: org.intermine/intermine-objectstore
/**
* {@inheritDoc}
* @param start the index to start from (inclusive)
* @param end the index to end at (exclusive)
* @return the sub-list
*/
@Override
public List<Object> subList(int start, int end) {
List<Object> ret = null;
try {
ret = range(start, end - 1);
} catch (DataChangedException e) {
ConcurrentModificationException e2 = new ConcurrentModificationException("ObjectStore"
+ " error has occurred (in subList) - data changed");
e2.initCause(e);
throw e2;
} catch (ObjectStoreException e) {
//LOG.debug("subList - " + e);
throw new RuntimeException("ObjectStore error has occured (in subList)", e);
}
return ret;
}
代码示例来源:origin: intermine/intermine
/**
* {@inheritDoc}
* @param start the index to start from (inclusive)
* @param end the index to end at (exclusive)
* @return the sub-list
*/
@Override
public List<Object> subList(int start, int end) {
List<Object> ret = null;
try {
ret = range(start, end - 1);
} catch (DataChangedException e) {
ConcurrentModificationException e2 = new ConcurrentModificationException("ObjectStore"
+ " error has occurred (in subList) - data changed");
e2.initCause(e);
throw e2;
} catch (ObjectStoreException e) {
//LOG.debug("subList - " + e);
throw new RuntimeException("ObjectStore error has occured (in subList)", e);
}
return ret;
}
代码示例来源:origin: org.intermine/intermine-objectstore
ConcurrentModificationException e2 = new ConcurrentModificationException("Object"
+ "Store error has occurred (in size) - data changed");
e2.initCause(e);
throw e2;
} catch (ObjectStoreException e) {
代码示例来源:origin: intermine/intermine
ConcurrentModificationException e2 = new ConcurrentModificationException("Object"
+ "Store error has occurred (in size) - data changed");
e2.initCause(e);
throw e2;
} catch (ObjectStoreException e) {
代码示例来源:origin: retrostreams/android-retrostreams
cmex.initCause(ise);
throw cmex;
cmex.initCause(ise);
throw cmex;
代码示例来源:origin: net.sourceforge.streamsupport/android-retrostreams
cmex.initCause(ise);
throw cmex;
cmex.initCause(ise);
throw cmex;
代码示例来源:origin: streamsupport/streamsupport
cmex.initCause(ise);
throw cmex;
cmex.initCause(ise);
throw cmex;
代码示例来源:origin: net.sourceforge.streamsupport/streamsupport
cmex.initCause(ise);
throw cmex;
cmex.initCause(ise);
throw cmex;
代码示例来源:origin: streamsupport/streamsupport
cme.initCause(ise);
throw cme;
代码示例来源:origin: retrostreams/android-retrostreams
cme.initCause(ise);
throw cme;
代码示例来源:origin: net.sourceforge.streamsupport/streamsupport
cme.initCause(ise);
throw cme;
代码示例来源:origin: net.sourceforge.streamsupport/android-retrostreams
cme.initCause(ise);
throw cme;
内容来源于网络,如有侵权,请联系作者删除!