How are you getting that error? Are you sure you aren't just passing a nil 
parameter by accident? For example, I get the same error when I pass nil to 
the "clojure.java.io/reader" function.

Clojure usually throws file not found exceptions where appropriate, e.g.

(use 'clojure.java.io)

(reader (file "ugieceb.doc"))
=> FileNotFoundException ugieceb.doc (The system cannot find the file 
specified)  java.io.FileInputStream.open (FileInputStream.java:-2)

On Monday, 8 December 2014 13:44:46 UTC+8, Fluid Dynamics wrote:
>
> IllegalArgumentException No implementation of method: :make-reader of 
> protocol: #'clojure.java.io/IOFactory found for class: nil  
> clojure.core/-cache-protocol-fn (core_deftype.clj:541)
>
> This, apparently, is clojure.java.io's way of saying "file not found". :)
>
> If there's a list somewhere of specific cases in which to improve the 
> clarity and conciseness of Clojure error reporting, I submit the above as a 
> shoo-in candidate for the new #1 spot and the gold medal in the "most in 
> need of improvement" Error Message Olympics. :)
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to