Mir*_*lal 3 error-handling try-catch netlogo
如何在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...
]
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
468 次 |
最近记录: |