catch

Bun

Symbol

SQLQuery.catch

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

Attaches a callback for only the rejection of the Promise.

@param onrejected

The callback to execute when the Promise is rejected.

@returns

A Promise for the completion of the callback.