Permalink
Browse files

Add toss for varargs convenience.

  • Loading branch information...
1 parent c2925d9 commit 1406767ed0393a71ef65fc14c8e62ee487dfd2ed @technomancy committed Jun 10, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/dce/Exception.clj
View
3 src/dce/Exception.clj
@@ -69,3 +69,6 @@
(defn -count [self]
(count (.state self)))
+
+(defn toss [& {:as args}]
+ (throw (dce.Exception. args)))

0 comments on commit 1406767

Please sign in to comment.