- Common ways to obtain NonSequenceOrCollectionException
private void myMethod () {NonSequenceOrCollectionException n =
Expression blamed;TemplateModel model;Environment tip;new NonSequenceOrCollectionException(blamed, model, tip)
- Smart code suggestions by Codota
}
private static Object[] extendTipsIfIterable(TemplateModel model, Object[] tips) { if (isWrappedIterable(model)) { final int tipsLen = tips != null ? tips.length : 0; Object[] extendedTips = new Object[tipsLen + 1]; for (int i = 0; i < tipsLen; i++) { extendedTips[i] = tips[i]; } extendedTips[tipsLen] = ITERABLE_SUPPORT_HINT; return extendedTips; } else { return tips; } }
&& !NonSequenceOrCollectionException.isWrappedIterable(listedValue)) { throw new NonSequenceOrCollectionException(env, new _ErrorDescriptionBuilder("The value you try to list is ",
private static Object[] extendTipsIfIterable(TemplateModel model, Object[] tips) { if (isWrappedIterable(model)) { final int tipsLen = tips != null ? tips.length : 0; Object[] extendedTips = new Object[tipsLen + 1]; for (int i = 0; i < tipsLen; i++) { extendedTips[i] = tips[i]; } extendedTips[tipsLen] = ITERABLE_SUPPORT_HINT; return extendedTips; } else { return tips; } }
private static Object[] extendTipsIfIterable(TemplateModel model, Object[] tips) { if (isWrappedIterable(model)) { final int tipsLen = tips != null ? tips.length : 0; Object[] extendedTips = new Object[tipsLen + 1]; for (int i = 0; i < tipsLen; i++) { extendedTips[i] = tips[i]; } extendedTips[tipsLen] = ITERABLE_SUPPORT_HINT; return extendedTips; } else { return tips; } }
&& !NonSequenceOrCollectionException.isWrappedIterable(listedValue)) { throw new NonSequenceOrCollectionException(env, new _ErrorDescriptionBuilder("The value you try to list is ",
&& !NonSequenceOrCollectionException.isWrappedIterable(listedValue)) { throw new NonSequenceOrCollectionException(env, new _ErrorDescriptionBuilder("The value you try to list is ",