如何在NetLogo中使用异常处理?如果我有错误,它将显示运行时错误。我不想显示此错误,相反,我想在运行时捕获它,然后执行其他操作(例如在c#或vb.net中)。任何帮助将不胜感激。谢谢
该carefully
原语正是这样做的,并且可以使用error-message
以下错误消息:
carefully [
print mean [] ; try to take the mean of an empty list
] [
print error-message ; or do something else instead...
]
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句