catch

inline fun <T : JsAny?> Promise<T>.catch(noinline onRejected: (JsErrorLike?) -> T): Promise<T>(source)