maxwell.kaos

Handles error normalization and error watching

->map

(->map k)
Takes an error and returns a serializable cljs map representing the error with fields:
- :message String 
- :stack [String]
- :file-name String - URL
- :line-number Int

normalized?

(normalized? e)
Checks if the error has been normalized by goog

watch-errors!

(watch-errors! cover-name catcher)(watch-errors! cover-name catcher opts)
(watch-errors! watcher-name f opts)
Registers an error catcher f that takes a normalized error object. 
opts: - :silence? bool. if true the errors will not hit the console
      - :target #js [Obj]. if present it will replace window, i.e. target.onerror = catcher;
Ex: (watch-errors! :sigfried
      (fn [e] (println "Zis is Kaos! We don't shush here!"))
      {:silence? true})