Closed burn2delete closed 6 years ago
This PR will show errors related to #177
I have improved this PR.
@Deraen now makes 3 changes:
clojure.spec.alpha/spec
and clojure.spec/spec
in data and remove from exception. (Clojure specs cannot be serialized.)ex-info
, ie. do not provide 3rd argument as it still contains the specs.Thanks, I'll have to think about this. Including spec data would probably be useful, if possible somehow.
Rethrowing original exception if it can't be serialized is probably good idea.
@Deraen is there a reason we serialize at all? It looks like we just do it to return the map which throws anyway. Seems we could skip the serialization and throw after handle-ex
?
Clojure.spec cannot be serialized,
this PR will catch the NotSerializableException and throw the original exception early.Update: See last comment.