flatCatch

inline fun <T> Promise<T>.flatCatch(noinline onRejected: (JsError) -> PromiseResult<T>): Promise<T>(source)