java.lang.IllegalArgumentException.fillInStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(173)

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

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);

相关文章