catch

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