Skip to main content

Function: isTransientError()

isTransientError(error, options?): boolean

Defined in: src/resilience/ExecutionStrategy.ts:55

Checks whether a given database error is transient and safe to retry.

Parameters​

ParameterType
errorany
options?{ retryOnDeadlocks?: boolean; retryOnTransientErrors?: boolean; }
options.retryOnDeadlocks?boolean
options.retryOnTransientErrors?boolean

Returns​

boolean