0.0.12 permalink Arrow_down_16x16

default-error-message

circumspec.should

  • (default-error-message {throwable :throwable, message :message})

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source circumspec/should.clj:27 top

(defn default-error-message
  [{throwable :throwable
    message :message}]
  (let [message-prefix (if message (str message "\n") nil)]
    (str
     "circumspec exception:\n"
     message-prefix
     "thrown " (with-out-str (.printStackTrace throwable (java.io.PrintWriter. *out*))))))
Vars in circumspec.should/default-error-message: *out* defn let str with-out-str
Used in 0 other vars

Comments top

No comments for default-error-message. Log in to add a comment.