defaultRetryIf static method

bool defaultRetryIf(
  1. Object error
)

Repete em falha de serialização (SQLSTATE 40001) e deadlock (40P01).

Implementation

static bool defaultRetryIf(Object error) =>
    error is PostgreSQLException &&
    (error.code == '40001' || error.code == '40P01');