Skip to content

postgrelize / RetryMatch

Type Alias: RetryMatch ​

RetryMatch = string | RegExp | (abstract new (...args) => unknown) | ((error) => unknown)

Defined in: src/connection/retry.ts:7

One entry of RetryOptions.match, compared with the error that made an attempt fail (as in retry-as-promised, which Sequelize v6 uses): a string equal to error.message or String(error), a regular expression that matches either of them, an error class (error instanceof match), or a predicate (error) => boolean.

Released under the MIT License.