thi-ng / xerror

CLJ/CLJS error throwing functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thi.ng/xerror

A tiny library to provide x-platform error throwing functions for Clojure & Clojurescript.

Leiningen coordinates

[thi.ng/xerror "0.1.0"]

Usage

(require '[thi.ng.xerror.core :as err])

(err/throw! "oops, you did it again!")

(err/key-error! :foo)

(err/type-error! 'myns.ExpectedType x)

(err/arity-error! 3)

(err/illegal-arg! 23)

(err/unsupported! "time-travel")

License

Copyright © 2013-2015 Karsten Schmidt

Apache Software License 2.0

About

CLJ/CLJS error throwing functions

License:Apache License 2.0


Languages

Language:Clojure 100.0%