本文整理了Java中java.lang.IllegalArgumentException.fillInStackTrace()
方法的一些代码示例,展示了IllegalArgumentException.fillInStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IllegalArgumentException.fillInStackTrace()
方法的具体详情如下:
包路径:java.lang.IllegalArgumentException
类名称:IllegalArgumentException
方法名:fillInStackTrace
暂无
代码示例来源:origin: cytoscape/application
/**
* Convenience method for throwing an IllegalArgumentException given
* a message.
*/
static private void throwIllegalArgumentException(String msg) throws IllegalArgumentException {
IllegalArgumentException ex = new IllegalArgumentException(msg);
ex.fillInStackTrace();
// ex.printStackTrace();
throw ex;
}
代码示例来源:origin: org.apache.brooklyn/brooklyn-core
@SuppressWarnings("unchecked")
private static Map<String, ?> castToMapWithStringKeys(Map<?, ?> map) {
// TODO when checking that all keys are strings
if (map == null) return ImmutableMap.of();
for (Object key : map.keySet()) {
if (!(key instanceof String)) {
IllegalArgumentException e = new IllegalArgumentException("Invalid non-string key(s), type " + key.getClass().getName()+" in map");
e.fillInStackTrace();
LOG.warn("Deprecated: invalid key(s) in map (continuing)", e);
break;
}
}
return (Map<String, ?>) map;
}
}
代码示例来源:origin: devstopfix/cb2java
+ " is not signed").fillInStackTrace();
if (scale > decimalPlaces()) {
throw (IllegalArgumentException) createEx(bigD, "must have "
+ decimalPlaces() + " decimal places").fillInStackTrace();
+ digits() + " digits").fillInStackTrace();
代码示例来源:origin: teatrove/teatrove
e.fillInStackTrace();
throw e;
代码示例来源:origin: com.caucho/resin
e);
e.fillInStackTrace();
e.printStackTrace();
代码示例来源:origin: kaazing/gateway
return DefaultConnectFuture.newFailedFuture(new IllegalArgumentException("localAddress is not null").fillInStackTrace());
代码示例来源:origin: io.virtdata/virtdata-lib-realer
break main;
e.fillInStackTrace();
errors.add(e);
++errorCount;
e.fillInStackTrace();
errors.add(e);
内容来源于网络,如有侵权,请联系作者删除!