catch

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

Since Kotlin

1.1