sfapi-ts

Home > @cjh1/sfapi > CancelablePromise > catch

CancelablePromise.catch() method

Signature:

catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;

Parameters

Parameter Type Description
onRejected ((reason: any) => TResult | PromiseLike<TResult>) | null (Optional)

Returns:

Promise<T | TResult>