im
wrote:
> Is there an easy way to create custom exception classes. Like in Java
> where you do:
>
> public class MyOwnException {}
>
> I suppose there is a way to do it with gen-class, but gen-class looks
> complicated.
>
> Can someone post a simple example?
Is there an easy way to create custom exception classes. Like in Java
where you do:
public class MyOwnException {}
I suppose there is a way to do it with gen-class, but gen-class looks
complicated.
Can someone post a simple example?
(btw, this would make a great macro in clojure.contrib