catch

inline fun <T : ERROR CLASS: Symbol not found for JsAny??> Promise<T>.catch(noinline onRejected: (JsErrorLike?) -> T): Promise<T>(source)

MDN Reference