API Reference > ecschema-metadata > Utils > DelayedPromise > catch catch Method Attaches a callback for only the rejection of the Promise. catch<TResult>(onrejected?: | (reason: any) => TResult | PromiseLike<TResult>): Promise<T | TResult> Parameter Type Description onrejected | (reason: any) => TResult | PromiseLike<TResult> The callback to execute when the Promise is rejected. Returns - Promise<T | TResult> A Promise for the completion of the callback. Defined in core/ecschema-metadata/src/DelayedPromise.ts Line 67 Last Updated: 11 June, 2024