Previously, Promise caught only Error on Kotlin. If you throw something else (e.g. Exception), this would've not been caught. So now instead we catch the highest level throwable, which is Throwable itself.
This catches every exception or runtime error and also carries enough string information with it to be represented as a JS error.
Previously,
Promise
caught onlyError
on Kotlin. If you throw something else (e.g.Exception
), this would've not been caught. So now instead we catch the highest level throwable, which isThrowable
itself.This catches every exception or runtime error and also carries enough string information with it to be represented as a JS error.