atrium
atrium copied to clipboard
include failure handling of throwable in DefaultFailureHandler
Platform (jvm, js, android): all Extension (none, kotlin 1.3, jdk8): none
Code related feature
We currently provide the possibility to define an own failure handler in case of a failing feature extraction. In most cases the default behaviour is good enough. We currently only use a special one in case of down-casting a Throwable.
IMO even this case should be incorporated into the DefaultFailureHandler so that a user of Atrium does no longer have to care about this subtlety and always benefit from a better error reporting.
For instance, one use case could be an assertion about a thrown exception of a Future. Most likely one would not think about using the special failure handler.