fasterthanlime / shin

:warning: (def shin (dissoc clojurescript :jvm :google_closure)) (deprecated)
MIT License
35 stars 1 forks source link

Raise custom error classes #114

Open kuon opened 9 years ago

kuon commented 9 years ago

Instead of raising strings, raise actual error class.

For example:

raise "invalid spec" unless type
# becomes
raise Shin::Errors::InvalidSpec unless type