catch

open fun <S> catch(onRejected: (Throwable) -> S): Promise<S>(source)

Since Kotlin

1.1
fun <S : JsAny?> catch(onRejected: (JsAny) -> S): Promise<S>(source)

Since Kotlin

1.8