Skip to content

Commit

Permalink
Handle exceptions when calling bean
Browse files Browse the repository at this point in the history
Fixes #78
  • Loading branch information
hlship committed Sep 13, 2022
1 parent 5afb656 commit 75c85f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/aviso/exception.clj
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@
[^Throwable exception options]
(if (instance? ExceptionInfo exception)
(wrap-exception exception (ex-data exception) options)
(let [properties (bean exception)
(let [properties (try (bean exception)
(catch Throwable _ nil))
;; Ignore basic properties of Throwable, any nil properties, and any properties
;; that are themselves Throwables
discarded-keys (concat [:suppressed :message :localizedMessage :class :stackTrace :cause]
Expand Down

0 comments on commit 75c85f5

Please sign in to comment.