Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将 clojure 与 quil 库一起使用,在代码中的某一时刻,我在文件夹中加载了一个随机图像,有时我会收到一条错误消息:
Could not find a method to load ./data/images/367-014.jpg%3F0
如果发现此错误,我怎样才能使代码继续运行?
假设您无法以其他方式阻止您可能正在寻找的错误 try/catch。(但这个问题没有明确说明)
看:
http://clojuredocs.org/clojure_core/1.2.0/clojure.core/try