File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog #
2
2
3
+ ## Version 2.3.5
4
+
5
+ Date: 2020-02-21
6
+
7
+ - Change exception monad to catch all throwables instead of exceptions only
8
+
3
9
## Version 2.3.4
4
10
5
11
Date: 2020-02-11
Original file line number Diff line number Diff line change 1
- (defproject funcool /cats " 2.3.4 "
1
+ (defproject funcool /cats " 2.3.5 "
2
2
:description " Category Theory abstractions for Clojure"
3
3
:url " https://github.com/funcool/cats"
4
4
:license {:name " BSD (2 Clause)"
Original file line number Diff line number Diff line change 73
73
" Return true if `v` is an instance of
74
74
the Throwable or js/Error type."
75
75
[e]
76
- (instance? #?(:clj Exception :cljs js/Error) e))
76
+ (instance? #?(:clj Throwable :cljs js/Error) e))
77
77
78
78
; ; --- Types and implementations.
79
79
199
199
(throwable? result) (failure result)
200
200
(exception? result) result
201
201
:else (success result)))
202
- (catch #?(:clj Exception
202
+ (catch #?(:clj Throwable
203
203
:cljs js/Error) e (failure e))))
204
204
205
205
(defn ^{:no-doc true }
You can’t perform that action at this time.
0 commit comments